.btn-login {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-login:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-register {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.btn-register:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========== LOGIN SECTION ========== */
.login-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
    background: linear-gradient(135deg, var(--light-bg) 0%, #e8f4fc 100%);
    position: relative;
    overflow: hidden;
}

.login-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 51, 102, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.login-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 50%;
    height: 150%;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.login-container {
    display: flex;
    /* max-width: 1000px; */
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

/* Left Panel - Branding */
.login-branding {
    flex: 0 0 45%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-branding::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.login-branding::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.branding-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.branding-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.branding-logo .logo-icon {
    width: 55px;
    height: 55px;
    background: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.6rem;
}

.branding-logo span {
    font-size: 1.8rem;
    font-weight: 800;
}

.branding-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.branding-content p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.8;
    margin-bottom: 30px;
}

.branding-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.branding-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.branding-features li i {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Right Panel - Form */
.login-form-panel {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.login-header p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Custom Tabs */
.login-tabs {
    display: flex;
    background: var(--light-bg);
    border-radius: var(--radius-lg);
    padding: 6px;
    margin-bottom: 30px;
}

.login-tabs .nav-link {
    flex: 1;
    text-align: center;
    padding: 14px 20px !important;
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text-gray) !important;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-tabs .nav-link:hover {
    color: var(--primary-color) !important;
    background: transparent;
}

.login-tabs .nav-link.active {
    background: var(--white) !important;
    color: var(--primary-color) !important;
    box-shadow: var(--shadow-sm);
}

.login-tabs .nav-link i {
    font-size: 1.1rem;
}

/* Form Styles */
.tab-content {
    min-height: 300px;
}

.form-floating {
    margin-bottom: 20px;
}

.form-floating .password {
    position: relative;
}

.form-control .passwd {
    padding-right: 50px;
}

.form-floating > .form-control {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1rem;
    height: auto;
    min-height: 60px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-floating > .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.1);
}

.form-floating > label {
    padding: 1rem;
    color: var(--text-gray);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-color);
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    font-size: 1.1rem;
    z-index: 5;
}

.input-icon .form-control {
    padding-right: 50px;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    z-index: 5;
    padding: 5px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary-color);
}

/* Checkbox */
.form-check {
    margin-bottom: 20px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.1);
}

.form-check-label {
    margin-left: 8px;
    color: var(--text-gray);
    cursor: pointer;
}

/* Submit Button */
.btn-submit {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 16px 30px;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.3);
    color: var(--white);
}

.btn-submit:hover::before {
    left: 100%;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    padding: 0 15px;
}

/* Social Login */
.social-login {
    display: flex;
    gap: 12px;
}

.btn-social {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.btn-social:hover {
    border-color: var(--primary-color);
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-social img {
    width: 22px;
    height: 22px;
}

/* Magic Link Styles */
.magic-link-info {
    background: var(--accent-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
}

.magic-link-info i {
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.magic-link-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.magic-link-info strong {
    color: var(--text-dark);
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 30px;
}

.success-message.show {
    display: block;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--success-color), #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
    color: var(--white);
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.success-message h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.success-message p {
    color: var(--text-gray);
    margin-bottom: 25px;
}

.success-message .email-highlight {
    font-weight: 600;
    color: var(--primary-color);
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.form-footer p {
    color: var(--text-gray);
    margin-bottom: 0;
}

.form-footer a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Forgot Password Link */
.forgot-password {
    text-align: right;
    margin-bottom: 20px;
}

.forgot-password a {
    color: var(--primary-color);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--white);
        padding: 20px;
        border-radius: var(--radius-lg);
        margin-top: 15px;
        box-shadow: var(--shadow-lg);
    }

    .login-container {
        flex-direction: column;
    }

    .login-branding {
        padding: 40px 30px;
    }

    .login-branding h2 {
        font-size: 1.6rem;
    }

    .branding-features {
        display: none;
    }

    .login-form-panel {
        padding: 40px 30px;
    }
}

@media (max-width: 576px) {
    .login-section {
        padding: 100px 15px 60px;
    }

    .login-branding {
        padding: 30px 25px;
    }

    .branding-logo .logo-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .branding-logo span {
        font-size: 1.5rem;
    }

    .login-branding h2 {
        font-size: 1.4rem;
    }

    .login-form-panel {
        padding: 30px 25px;
    }

    .login-header h3 {
        font-size: 1.5rem;
    }

    .login-tabs .nav-link {
        padding: 12px 15px !important;
        font-size: 0.9rem;
    }

    .login-tabs .nav-link span {
        display: none;
    }

    .social-login {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}