/* ============================================
   Reston Connect - Auth Pages CSS
   ============================================ */

.auth-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.auth-brand {
    flex: 1;
    background: linear-gradient(135deg, var(--navy-blue) 0%, #1a365d 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 40px;
    overflow: hidden;
}

.auth-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

.brand-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 400px;
}

.brand-logo {
    width: 280px;
    max-width: 280px;
    height: auto;
    margin-bottom: 30px;
    filter: brightness(0) invert(1);
}

.brand-content h1 {
    font-size: 32px;
    color: white;
    font-weight: 700;
    margin-bottom: 16px;
}

.brand-content p {
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.6;
}

.auth-form-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: var(--bg-color);
}

.auth-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 450px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 24px;
    color: var(--navy-blue);
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.auth-footer a {
    color: var(--primary-red);
    font-weight: 600;
}

.auth-footer a:hover {
    color: var(--primary-red-hover);
}

.password-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
    display: block;
}

@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-brand {
        flex: none;
        padding: 40px 20px;
    }
    
    .brand-logo {
        width: 150px;
    }
    
    .brand-content h1 {
        font-size: 24px;
    }

    .brand-content {
        max-width: 100%;
    }
    
    .auth-form-wrapper {
        padding: 20px;
        align-items: flex-start;
    }
    
    .auth-card {
        padding: 30px 20px;
    }
}

/* Premium Captcha Box */
.captcha-container {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px;
    margin-top: 4px;
}

.captcha-image-wrapper {
    position: relative;
    background: white;
    padding: 4px 8px 4px 4px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

.captcha-image-wrapper:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.captcha-image-wrapper img {
    display: block;
    border-radius: 4px;
    height: 44px;
    width: auto;
}

.captcha-refresh-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    transition: background 0.2s, color 0.2s, transform 0.3s ease;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.captcha-image-wrapper:hover .captcha-refresh-btn {
    background: var(--navy-blue);
    color: white;
    transform: rotate(180deg);
}

.captcha-input {
    flex: 1;
    min-width: 0;
    height: 48px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    font-size: 15px;
}

.captcha-input::placeholder {
    text-transform: none !important;
    letter-spacing: normal !important;
    font-weight: 400 !important;
    font-size: 13px !important;
    color: #94a3b8 !important;
}

@media (max-width: 480px) {
    .auth-brand {
        padding: 24px 16px;
    }

    .auth-form-wrapper {
        padding: 24px 16px;
    }

    .auth-header h2 {
        font-size: 20px;
    }

    .auth-card {
        max-width: 100%;
    }

    .captcha-container {
        flex-direction: column;
        align-items: stretch;
    }

    .captcha-image-wrapper {
        justify-content: center;
    }
}
