/* ===============================================
   30JOURNEYS AUTHENTICATION & LOGIN THEME
   Modern Theme Palette (Matching 404 & Welcome Pages):
   - Primary Purple Accent: #7c3aed / #6d28d9
   - Primary Indigo Gradient: #4338ca -> #7c3aed
   - Primary Dark Charcoal: #0f172a / #1e293b
   - Neutral Muted: #64748b
   - Background Light: #f8f9fb
   =============================================== */

/* ===============================================
   FONT DEFINITIONS - METROPOLIS
   =============================================== */
@font-face {
    font-family: 'Metropolis';
    src: url('../fonts/Metropolis-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Metropolis';
    src: url('../fonts/Metropolis-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Metropolis';
    src: url('../fonts/Metropolis-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Metropolis';
    src: url('../fonts/Metropolis-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Metropolis';
    src: url('../fonts/Metropolis-ExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --auth-bg-color: #FFFBF8;
    --auth-primary-dark: #242424;
    --auth-primary-dark-hover: #131220;
    --auth-primary-orange: #ef4c23;
    --auth-primary-orange-hover: #d63f17;
    --auth-primary-orange-light: #fff1ee;
    --auth-primary-orange-border: #fed7cf;
    --auth-text-dark: #242424;
    --auth-text-muted: #64748b;
    --auth-text-subtle: #94a3b8;
    --auth-border-color: #e2e8f0;
    --auth-input-bg: #ffffff;
    --auth-card-bg: #ffffff;
    --auth-card-radius: 20px;
    --auth-card-shadow: 0 10px 30px -5px rgba(239, 76, 35, 0.07), 0 4px 20px -2px rgba(0, 0, 0, 0.03);
}

/* Base Document Styles */
body.auth-body {
    background-color: var(--auth-bg-color);
    font-family: 'Metropolis', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--auth-text-dark);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Ambient glowing circles matching 404 & welcome */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

.glow-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(239, 76, 35, 0.2) 0%, rgba(239, 76, 35, 0) 70%);
    top: -100px;
    left: -100px;
}

.glow-2 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(246, 152, 128, 0.25) 0%, rgba(246, 152, 128, 0) 70%);
    bottom: 0;
    right: -100px;
}

.glow-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(239, 76, 35, 0.12) 0%, rgba(239, 76, 35, 0) 70%);
    top: 40%;
    right: 20%;
}

.auth-page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    position: relative;
    z-index: 1;
}

.auth-header,
.auth-main-wrapper,
.auth-footer {
    position: relative;
    z-index: 2;
}

/* -----------------------------------------------
   Header Styles
   ----------------------------------------------- */
.auth-header {
    padding: 24px 0 10px;
}

.auth-logo img {
    height: 72px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.auth-logo img:hover {
    transform: scale(1.03);
}

.auth-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-status-pill,
.auth-help-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--auth-border-color);
    border-radius: 30px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--auth-text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.auth-help-pill:hover {
    background-color: #ffffff;
    border-color: var(--auth-primary-orange-border);
    color: var(--auth-primary-orange);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    display: inline-block;
}

/* -----------------------------------------------
   Main Content Layout
   ----------------------------------------------- */
.auth-main-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 30px 0;
}

/* Left Hero Section */
.auth-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background-color: var(--auth-primary-orange-light);
    border: 1px solid var(--auth-primary-orange-border);
    border-radius: 20px;
    color: var(--auth-primary-orange);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(239, 76, 35, 0.08);
}

.auth-hero-title {
    font-size: clamp(2.3rem, 4.2vw, 3.6rem);
    font-weight: 800;
    line-height: 1.16;
    color: var(--auth-text-dark);
    letter-spacing: -0.03em;
    margin-bottom: 22px;
}

.auth-hero-title .highlight-red,
.auth-hero-title .highlight-teal,
.auth-hero-title .highlight-theme,
.brand-accent {
    background: linear-gradient(135deg, #ef4c23 0%, #f77042 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.auth-hero-desc {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--auth-text-muted);
    max-width: 530px;
    margin-bottom: 0;
}

/* -----------------------------------------------
   Right Login & Auth Card
   ----------------------------------------------- */
.auth-card-box {
    background: var(--auth-card-bg);
    border-radius: var(--auth-card-radius);
    padding: 42px 40px;
    box-shadow: var(--auth-card-shadow);
    border: 1px solid #f1e9e3;
    max-width: 480px;
    margin-left: auto;
    width: 100%;
}

.auth-card-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--auth-text-dark);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.auth-card-subtitle {
    font-size: 0.875rem;
    color: var(--auth-text-muted);
    margin-bottom: 24px;
    font-weight: 400;
    line-height: 1.5;
}

/* Form Styles */
.auth-form-group {
    margin-bottom: 18px;
}

.auth-label {
    font-size: 0.725rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--auth-text-dark);
    margin-bottom: 8px;
    display: block;
}

.input-icon-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-group .input-icon {
    position: absolute;
    left: 16px;
    color: var(--auth-text-subtle);
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.input-icon-group:focus-within .input-icon {
    color: var(--auth-primary-orange);
}

.password-toggle-btn {
    position: absolute;
    right: 14px;
    background: transparent;
    border: none;
    padding: 6px;
    margin: 0;
    color: var(--auth-text-subtle);
    font-size: 1.15rem;
    cursor: pointer;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.password-toggle-btn svg,
.password-toggle-btn i {
    pointer-events: none;
    display: block;
}

.password-toggle-btn:hover {
    color: var(--auth-primary-orange);
    background-color: var(--auth-primary-orange-light);
}

.password-toggle-btn:focus {
    outline: none;
    color: var(--auth-primary-orange);
}

.input-icon-group .form-control,
.auth-form-control {
    height: 48px;
    padding-left: 44px;
    padding-right: 16px;
    background-color: var(--auth-input-bg);
    border: 1px solid var(--auth-border-color);
    border-radius: 10px;
    font-size: 0.925rem;
    color: var(--auth-text-dark);
    transition: all 0.2s ease;
    width: 100%;
}

.input-icon-group .form-control.has-toggle-btn,
.auth-form-control.has-toggle-btn {
    padding-right: 44px;
}

.input-icon-group .form-control::placeholder,
.auth-form-control::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.input-icon-group .form-control:focus,
.auth-form-control:focus {
    background-color: #ffffff;
    border-color: var(--auth-primary-orange);
    box-shadow: 0 0 0 3.5px rgba(239, 76, 35, 0.15);
    outline: none;
}

/* Checkbox & Options */
.auth-options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.875rem;
}

.form-check-input {
    border-color: #cbd5e1;
    border-radius: 4px;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--auth-primary-orange);
    border-color: var(--auth-primary-orange);
}

.form-check-input:focus {
    border-color: var(--auth-primary-orange);
    box-shadow: 0 0 0 3px rgba(239, 76, 35, 0.15);
}

.form-check-label {
    color: var(--auth-text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    user-select: none;
}

.auth-link {
    color: var(--auth-primary-orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: color 0.15s ease;
}

.auth-link:hover {
    color: var(--auth-primary-orange-hover);
    text-decoration: underline;
}

/* Submit & Action Buttons (Primary Orange CTA matching new theme) */
.auth-submit-btn,
.auth-btn-wrap .auth-btn {
    width: 100%;
    height: 48px;
    background-color: var(--auth-primary-orange);
    color: #ffffff !important;
    border: 1px solid var(--auth-primary-orange);
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(239, 76, 35, 0.25);
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.auth-submit-btn:hover,
.auth-btn-wrap .auth-btn:hover {
    background-color: var(--auth-primary-orange-hover);
    border-color: var(--auth-primary-orange-hover);
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(239, 76, 35, 0.35);
    transform: translateY(-2px);
}

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

.auth-secondary-btn {
    width: 100%;
    height: 48px;
    background-color: #ffffff;
    color: #334155 !important;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.auth-secondary-btn:hover {
    background-color: #fffbf8;
    color: var(--auth-primary-orange) !important;
    border-color: var(--auth-primary-orange-border);
    transform: translateY(-2px);
}

/* Card Bottom Link */
.auth-card-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.825rem;
    color: var(--auth-text-muted);
}

.auth-card-footer a {
    color: var(--auth-primary-orange);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.auth-card-footer a:hover {
    color: var(--auth-primary-orange-hover);
    text-decoration: underline;
}

/* Status & Alert Boxes */
.auth-alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.auth-alert-info {
    background-color: #fff1ee;
    color: #c2410c;
    border: 1px solid #fed7cf;
}

/* Validation Errors */
.error,
label.error {
    color: #dc2626 !important;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-top: 6px;
    display: block;
}

/* -----------------------------------------------
   Footer Styles
   ----------------------------------------------- */
.auth-footer {
    padding: 24px 0;
    font-size: 0.8125rem;
    color: var(--auth-text-subtle);
}

.auth-footer-text {
    margin: 0;
    color: var(--auth-text-muted);
}

.auth-footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.auth-footer-links a {
    color: var(--auth-text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

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

/* -----------------------------------------------
   Responsive Adjustments
   ----------------------------------------------- */
@media (max-width: 991.98px) {
    .auth-main-wrapper {
        padding: 40px 0;
    }

    .auth-hero-desc {
        max-width: 100%;
        margin-bottom: 35px;
    }

    .auth-card-box {
        margin: 0 auto;
        padding: 32px 24px;
    }

    .auth-footer-links {
        justify-content: flex-start;
        margin-top: 12px;
    }
}

@media (max-width: 575.98px) {
    .auth-card-box {
        padding: 28px 20px;
    }

    .auth-hero-title {
        font-size: 2rem;
    }

    .auth-header-actions {
        display: none;
    }
}