/* ====================================
   |   1. Custom Properties & Base Styles   |
   ==================================== */
:root {
    --primary: #5e72e4;
    --secondary: #2dce89;
    --accent: #ffb830;
    --dark: #212529;
    --light: #f8f9fe;
    --gray: #8898aa;
    --main-font: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--main-font);
    background: #f0f3ff;
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--main-font);
    font-weight: 800;
}

.red-text {
    color: var(--accent);
}

.text-danger {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

/* ====================================
   |         2. Header Style          |
   ==================================== */
.fixed-top {
    position: sticky;
    top: 0;
    z-index: 1030;
}

header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 1rem 2rem;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    font-weight: 800;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand img {
    border-radius: 15px;
    width: 50px;
    margin-right: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ====================================
   |         3. Form Style            |
   ==================================== */
.form-41-mian {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

.align-form-map {
    width: 100%;
    max-width: 500px;
    animation: popUp 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes popUp {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.form-inner-cont {
    background: white;
    padding: 3.5rem 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9eef6;
}

.signin-form h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2rem;
    text-align: center;
}

.signin-form .form-input {
    margin-bottom: 1.8rem;
}

.signin-form label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--dark);
    font-size: 1rem;
}

.signin-form input,
.signin-form select {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    font-size: 1rem;
    color: var(--dark);
    transition: all 0.3s ease;
}

.signin-form input::placeholder {
    color: var(--gray);
    font-style: italic;
}

.signin-form input:focus,
.signin-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(94, 114, 228, 0.1);
}

.error-message {
    font-size: 0.85rem;
    color: var(--accent);
    margin-top: 0.5rem;
    font-weight: 500;
}

.security-verification {
    margin-top: 2.5rem;
}

.recaptcha-wrapper {
    display: flex;
    justify-content: center;
    transform: scale(0.9);
    transform-origin: center;
}

/* ====================================
   |       4. Buttons & Links         |
   ==================================== */
.btn-style {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.action-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.action-links a {
    position: relative;
    font-weight: 600;
    color: var(--primary);
    transition: color 0.3s ease;
}

.action-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    bottom: -3px;
    left: 0;
    transition: width 0.3s ease;
}

.action-links a:hover {
    color: var(--secondary);
}

.action-links a:hover:after {
    width: 100%;
}

.join-btn .btn-icon, .login-btn .btn-icon {
    display: none;
}

/* ====================================
   |         5. Responsive Styles     |
   ==================================== */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    .navbar-brand {
        font-size: 1.4rem;
    }

    .navbar-brand img {
        width: 40px;
        margin-right: 10px;
    }

    .form-inner-cont {
        padding: 2rem 1.5rem;
    }
    
    .form-41-mian {
        padding: 4rem 1rem;
    }

    .signin-form h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .signin-form input,
    .signin-form select {
        padding: 0.8rem 1rem;
    }

    .recaptcha-wrapper {
        transform: scale(0.85);
    }
}
