/* ==========================================================================
   Security Pages - Auth Card Styles
   Login, Register, Forgot Password, Reset Password, Resend Verification
   ========================================================================== */

/* --------------------------------------------------------------------------
   Auth Page Layout
   -------------------------------------------------------------------------- */
:root {
    --primary-blue: #1e3a5f;
    --primary-orange: #f47920;
}

body.auth-page {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2c5282 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* --------------------------------------------------------------------------
   Auth Card
   -------------------------------------------------------------------------- */
.auth-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
}

.auth-card--wide {
    max-width: 450px;
}

.auth-card--centered {
    text-align: center;
}

/* --------------------------------------------------------------------------
   Auth Logo
   -------------------------------------------------------------------------- */
.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    margin-bottom: 1.5rem;
    text-decoration: none;
}

.auth-logo img {
    height: 44px;
    width: auto;
    flex-shrink: 0;
}

.auth-logo-icon {
    height: 44px;
    width: auto;
}

.auth-logo-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e3a5f;
    white-space: nowrap;
    line-height: 1.2;
}

/* --------------------------------------------------------------------------
   Auth Card Typography
   -------------------------------------------------------------------------- */
.auth-card h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-card h1.has-subtitle {
    margin-bottom: 0.5rem;
}

.auth-card .subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 1.5rem;
}

.auth-card p {
    color: #666;
}

/* --------------------------------------------------------------------------
   Auth Card Form Controls
   -------------------------------------------------------------------------- */
.auth-card .form-control {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #ddd;
}

.auth-card .form-control:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.2rem rgba(244, 121, 32, 0.15);
}

.auth-card .form-label {
    font-weight: 500;
    color: #333;
}

.auth-card .btn-primary {
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    background: var(--primary-orange);
    border: none;
}

.auth-card .btn-primary:hover {
    background: #e06810;
}

/* --------------------------------------------------------------------------
   Auth Card Links
   -------------------------------------------------------------------------- */
.auth-card a {
    color: var(--primary-orange);
}

.auth-card a:hover {
    color: #e06810;
}

/* --------------------------------------------------------------------------
   Login - Forgot Password Link
   -------------------------------------------------------------------------- */
.forgot-password {
    display: block;
    text-align: right;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   Register / Reset Password - Password Requirements
   -------------------------------------------------------------------------- */
.password-requirements {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
}

.password-requirements li {
    margin-bottom: 0.25rem;
}

/* --------------------------------------------------------------------------
   Register / Forgot Password - Honeypot Field
   -------------------------------------------------------------------------- */
.honeypot-field {
    position: absolute;
    left: -9999px;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Register Success - Success Icon
   -------------------------------------------------------------------------- */
.success-icon {
    width: 80px;
    height: 80px;
    background: #d4edda;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: #28a745;
}

/* --------------------------------------------------------------------------
   Register Success - Email Note
   -------------------------------------------------------------------------- */
.email-note {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   Social Login
   -------------------------------------------------------------------------- */
.social-login {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.social-login-divider {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.social-login-divider span {
    background: white;
    padding: 0 0.75rem;
    color: #6c757d;
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
}

.social-login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
    transform: translateY(-50%);
}

.social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
    border: 1px solid #dadce0;
    background: white;
    color: #3c4043;
}

.btn-social:hover {
    background: #f8f9fa;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    color: #3c4043;
    text-decoration: none;
}

.btn-social--facebook {
    color: #1877F2;
}

.btn-social--facebook:hover {
    color: #1877F2;
}
