/**
 * Authentication Pages Styling
 * Navy/Terracotta Modern Design
 * Login, Signup, Forgot Password
 */

/* ================================
   AUTH PAGE BASE STYLES
   ================================ */

.auth-page {
    background: #000000;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Crimson Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Main content area with header */
.auth-page .auth-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

/* ================================
   WELCOME MESSAGE
   ================================ */

.auth-welcome {
    text-align: center;
    margin-bottom: 32px;
}

.auth-welcome h2 {
    font-size: 1.8rem;
    color: #FFFFFF;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.auth-welcome p {
    font-size: 1rem;
    color: #A0A0A0;
    margin: 0;
}

/* ================================
   ALERTS (Error/Success Messages)
   ================================ */

.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
}

.alert-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.alert-error,
.auth-error {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #FCA5A5;
}

.alert-success,
.auth-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86EFAC;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

.alert li {
    margin-bottom: 4px;
}

/* Legacy error/success styles (for compatibility) */
.auth-error,
.auth-success {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* ================================
   FORM STYLES
   ================================ */

.auth-form {
    background: #0a1e43;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-of-type {
    margin-bottom: 0;
}

label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #FFFFFF;
    margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    color: #FFFFFF;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

input:focus {
    outline: none;
    border-color: #95472d;
    box-shadow: 0 0 0 3px rgba(149, 71, 45, 0.1);
}

input::placeholder {
    color: #707070;
}

.form-hint,
.form-group small {
    display: block;
    font-size: 0.85rem;
    color: #A0A0A0;
    margin-top: 6px;
}

/* ================================
   PASSWORD INPUT WITH TOGGLE
   ================================ */

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #A0A0A0;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #FFFFFF;
}

/* ================================
   PASSWORD STRENGTH METER
   ================================ */

.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-fill.weak {
    width: 33%;
    background: #EF4444;
}

.strength-fill.medium {
    width: 66%;
    background: #F59E0B;
}

.strength-fill.strong {
    width: 100%;
    background: #10B981;
}

.strength-text {
    font-size: 0.85rem;
    margin-top: 4px;
    display: block;
}

.strength-text.weak { color: #EF4444; }
.strength-text.medium { color: #F59E0B; }
.strength-text.strong { color: #10B981; }

/* ================================
   CHECKBOX STYLES
   ================================ */

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #FFFFFF;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #95472d;
}

.checkbox-label span {
    user-select: none;
}

/* ================================
   FORM ROW (Remember Me + Forgot Password)
   ================================ */

.form-row,
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

/* ================================
   BUTTONS
   ================================ */

.btn-primary,
.auth-btn {
    background: #95472d;
    color: #FFFFFF;
    border: none;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    width: 100%;
}

.btn-primary:hover,
.auth-btn:hover {
    background: #b86847;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(149, 71, 45, 0.3);
}

.btn-primary:active,
.auth-btn:active {
    transform: translateY(0);
}

.btn-primary:disabled,
.auth-btn:disabled {
    background: #707070;
    cursor: not-allowed;
    transform: none;
}

.btn-full {
    width: 100%;
    margin-top: 24px;
}

/* Social Login Button (Optional) */
.btn-social {
    width: 100%;
    padding: 12px 24px;
    background: #FFFFFF;
    color: #000000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    margin-top: 16px;
}

.btn-social:hover {
    background: #F5F5F5;
}

.btn-social img {
    width: 20px;
    height: 20px;
}

/* ================================
   LINKS
   ================================ */

.link-primary {
    color: #95472d;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.link-primary:hover {
    color: #b86847;
    text-decoration: underline;
}

.link-secondary,
.forgot-link {
    color: #A0A0A0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.link-secondary:hover,
.forgot-link:hover {
    color: #FFFFFF;
}

.link-inline {
    color: #95472d;
    text-decoration: underline;
}

.link-inline:hover {
    color: #b86847;
}

/* ================================
   FOOTER (Sign Up / Login Link)
   ================================ */

.auth-footer {
    text-align: center;
    margin-top: 24px;
}

.auth-footer p {
    color: #A0A0A0;
    font-size: 0.95rem;
    margin: 0;
}

.auth-footer a {
    color: #95472d;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
    color: #b86847;
}

/* ================================
   DIVIDER (For Social Login)
   ================================ */

.divider {
    margin: 24px 0;
    text-align: center;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.divider span {
    position: relative;
    background: #0a1e43;
    padding: 0 16px;
    color: #A0A0A0;
    font-size: 0.9rem;
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 768px) {
    .auth-page .auth-container {
        padding: 40px 20px;
    }

    .auth-form {
        padding: 30px 24px;
    }

    .auth-welcome h2 {
        font-size: 1.5rem;
    }

    .form-row,
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ================================
   LEGACY SUPPORT (for existing pages)
   ================================ */

/* Two-column layout support (if benefits section exists) */
.auth-container.two-column {
    max-width: 1200px;
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

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

.auth-benefits {
    flex: 1;
    max-width: 450px;
}

.auth-benefits h2 {
    color: #FFFFFF;
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.auth-benefits ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-benefits li {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: rgba(10, 30, 67, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s;
}

.auth-benefits li:hover {
    background: rgba(149, 71, 45, 0.1);
    border-color: rgba(149, 71, 45, 0.3);
    transform: translateX(-5px);
}

.benefit-icon {
    font-size: 2rem;
    line-height: 1;
}

.auth-benefits li strong {
    display: block;
    color: #FFFFFF;
    margin-bottom: 5px;
    font-size: 1.05rem;
}

.auth-benefits li p {
    color: #A0A0A0;
    margin: 0;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .auth-container.two-column {
        flex-direction: column;
        gap: 40px;
    }

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