/* ==========================================================================
   Login & Signup Page Styles (Matching Contact Layout)
   ========================================================================== */

.login-wrapper {
    background-color: #ffffff;
    padding: 60px 0;
}

/* Info Panel Card (Left Side) */
.auth-info-card {
    background: linear-gradient(145deg, #071e3d 0%, var(--primary-navy) 100%);
    color: #ffffff;
    padding: 40px 35px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 44, 89, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(15, 44, 89, 0.08);
}

.auth-info-card::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 4, 41, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.auth-info-heading {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 25px;
}

.auth-info-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.auth-features-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.auth-features-list li {
    font-size: 0.98rem;
    font-weight: 600;
    color: #ffd700; /* Gold */
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-features-list li::before {
    content: '\f111';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.5rem;
    color: #ffd700;
}

.auth-info-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
    margin: 25px 0;
}

.auth-info-footer-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

/* Form Panel Card (Right Side - Matching Contact Form) */
.auth-form-card {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    height: 100%;
}

.auth-form-title {
    color: var(--accent-red);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.auth-form-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 3px;
    background-color: var(--accent-red);
    border-radius: 2px;
}

.auth-form-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 6px;
}

.auth-form-control {
    padding: 11px 16px;
    font-size: 0.92rem;
    border: 1px solid rgba(15, 44, 89, 0.18);
    border-radius: 6px;
    transition: all 0.25s ease;
    background-color: #fbfcfd;
    width: 100%;
}

.auth-form-control:focus {
    border-color: var(--accent-red);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(217, 4, 41, 0.12);
    outline: none;
}

/* Consent check blocks */
.auth-consent-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 8px;
}

.auth-checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.auth-checkbox-wrap input[type="checkbox"] {
    margin-top: 4px;
    cursor: pointer;
}

.auth-checkbox-label {
    font-size: 0.85rem;
    color: #495057;
    line-height: 1.4;
    cursor: pointer;
}

.auth-checkbox-label a {
    color: var(--primary-navy);
    text-decoration: underline;
    font-weight: 500;
}

.auth-checkbox-label a:hover {
    color: var(--accent-red);
}

/* Buttons and Links - Matching Contact Action button */
.btn-auth-submit {
    background-color: var(--accent-red);
    color: #ffffff;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: 6px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(217, 4, 41, 0.2);
    width: 100%;
    margin-top: 15px;
    margin-bottom: 18px;
}

.btn-auth-submit:hover {
    background-color: var(--accent-red-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(217, 4, 41, 0.35);
}

.auth-toggle-link-wrap {
    text-align: center;
    font-size: 0.9rem;
    color: #495057;
}

.auth-toggle-link {
    color: var(--primary-navy);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.auth-toggle-link:hover {
    color: var(--accent-red);
    text-decoration: underline;
}

/* Auth Page States (Sign Up vs Login Transition) */
.auth-state-box {
    display: none;
}

.auth-state-box.active {
    display: block;
    animation: fadeInAuth 0.4s ease forwards;
}

@keyframes fadeInAuth {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success Message Popup / Toast Overlay */
.auth-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 44, 89, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.auth-success-overlay.show {
    opacity: 1;
    visibility: visible;
}

.auth-success-card {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-success-overlay.show .auth-success-card {
    transform: scale(1);
}

.auth-success-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 20px auto;
}

.auth-success-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 12px;
}

.auth-success-desc {
    font-size: 0.95rem;
    color: #495057;
    margin-bottom: 25px;
    line-height: 1.5;
}

.btn-success-close {
    background-color: var(--primary-navy);
    color: #ffffff;
    padding: 10px 25px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.btn-success-close:hover {
    background-color: var(--accent-red);
    color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .login-wrapper {
        padding: 40px 0;
    }

    .auth-info-card {
        padding: 35px 25px;
    }

    .auth-form-card {
        padding: 25px 20px;
        margin-top: 30px;
    }
}
