/* Auth Pages — Unified Dark Theme */

* { margin: 0; padding: 0; box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
    background: #000000;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #ffffff;
}

/* ---- Card ---- */
.auth-box {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(145deg, rgba(17, 17, 22, 0.97), rgba(13, 13, 18, 0.97));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 40px 32px 32px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(24px);
    box-shadow:
        0 0 0 1px rgba(8, 145, 178, 0.05),
        0 8px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* top accent line */
.auth-box::before {
    content: '';
    position: absolute;
    top: 0; left: 24px; right: 24px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0891b2, #06b6d4, transparent);
    border-radius: 0 0 2px 2px;
}

/* ---- Title ---- */
.auth-box h2 {
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 28px;
    background: linear-gradient(135deg, #0891b2, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.auth-box h2 i {
    margin-right: 8px;
    -webkit-text-fill-color: #0891b2;
}

/* ---- Fields ---- */
.field { margin-bottom: 18px; }

.field label {
    display: block;
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 6px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.field input[type="text"],
.field input[type="password"],
.field input[type="email"] {
    width: 100%;
    padding: 11px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #eee;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}

.field input:focus {
    border-color: #0891b2;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.field input::placeholder { color: #666; }

.field-hint {
    font-size: 0.72rem;
    color: #666;
    margin-top: 5px;
}

/* ---- Checkboxes ---- */
.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: #999;
}

.check-row input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #0891b2;
    cursor: pointer;
    flex-shrink: 0;
}

.check-row a { color: #0891b2; text-decoration: none; transition: color 0.2s ease-out; }
.check-row a:hover { text-decoration: underline; color: #22d3ee; }

/* ---- Turnstile ---- */
.turnstile-wrap {
    margin-bottom: 18px;
    display: flex;
    justify-content: center;
    transition: opacity 0.2s ease-out;
}

/* ---- Button ---- */
.btn-auth {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    box-shadow: 0 4px 16px rgba(8, 145, 178, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-auth:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(8, 145, 178, 0.35);
    color: #fff;
}

.btn-auth:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(8, 145, 178, 0.2);
}

.btn-auth:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ---- Links ---- */
.auth-links {
    text-align: center;
    margin-top: 18px;
    font-size: 0.8rem;
    color: #666;
}

.auth-links a { color: #0891b2; text-decoration: none; transition: color 0.2s ease-out; }
.auth-links a:hover { color: #22d3ee; text-decoration: underline; }
.auth-links span { color: #444; margin: 0 10px; }

/* ---- Success state ---- */
.auth-success { text-align: center; padding: 20px 0; transition: opacity 0.3s ease-out; }

.auth-success i {
    font-size: 3rem;
    color: #0891b2;
    margin-bottom: 12px;
    display: block;
}

.auth-success p { color: #ccc; font-size: 0.9rem; margin-bottom: 16px; }

/* ============================================================
   Bootstrap Overrides (auth scope only)
   ============================================================ */

.auth-box .form-control,
.auth-box .form-select {
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    color: #eee;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}

.auth-box .form-control:focus,
.auth-box .form-select:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: #0891b2;
    color: #eee;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.12);
}

.auth-box .form-control::placeholder { color: #666; }

.auth-box .form-label {
    font-size: 0.78rem;
    color: #888;
    font-weight: 500;
    margin-bottom: 6px;
}

.auth-box .form-text { font-size: 0.72rem; color: #555; }

.auth-box .mb-3 { margin-bottom: 18px !important; }

.auth-box .btn-primary {
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(8, 145, 178, 0.25);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.auth-box .btn-primary:hover { opacity: 0.92; color: #fff; transform: translateY(-1px); }

/* ============================================================
   Modal & Container Overrides
   ============================================================ */

.modal { display: none !important; }
.modal.show { display: block !important; transition: opacity 0.2s ease-out; }

.login-container, .register-container, .forgot-container, .reset-container {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    animation: none !important;
    max-width: none !important;
    padding: 0 !important;
    transition: none !important;
}

.auth-page-body {
    background: #000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.3s ease-out;
}

.auth-page-body .container {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    transition: width 0.3s ease-out;
}
