/* ================================================================
   TECHAVEN — auth.css  v2
   Aggressive Bootstrap overrides — dark everywhere, no white bleed
   Split layout: circuit panel left / form right
   ================================================================ */

/* ── Kill Bootstrap's white body/html defaults on auth pages ─── */
body.auth-body {
    background: #06060e !important;
    color: #e2e2ec !important;
    min-height: 100vh;
    margin: 0;
    padding: 0 !important;
}

/* ── Full page grid ──────────────────────────────────────────── */
.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #06060e;
    margin: 0;
    padding: 0;
}
@media (max-width: 991px) {
    .auth-page { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   LEFT PANEL
══════════════════════════════════════ */
.auth-left {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 2.5rem;
    background: #04040c;
    border-right: 1px solid rgba(255,255,255,0.06);
    min-height: 100vh;
}
@media (max-width: 991px) { .auth-left { display: none; } }

#auth-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

.auth-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
}
.auth-orb-1 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(10,132,255,0.15), transparent 70%);
    top: -80px; left: -80px;
    animation: authOrb 12s ease-in-out infinite alternate;
}
.auth-orb-2 {
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(10,132,255,0.09), transparent 70%);
    bottom: -60px; right: -60px;
    animation: authOrb 15s ease-in-out infinite alternate-reverse;
}
@keyframes authOrb { 0%{transform:translate(0,0)} 100%{transform:translate(24px,24px)} }

/* Left content layers above canvas */
.auth-left-top,
.auth-left-centre,
.auth-left-bottom { position: relative; z-index: 2; }

.auth-left-top { flex-shrink: 0; }

.auth-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none !important;
}
.auth-brand-logo {
    width: 34px; height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(10,132,255,0.28);
    background: rgba(10,132,255,0.10);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #0a84ff;
    flex-shrink: 0;
}
.auth-brand-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.05em;
}
.auth-brand-name span { color: #0a84ff; }

/* Centre */
.auth-left-centre {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 0;
}
.auth-l-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.67rem;
    color: #0a84ff;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.auth-l-eyebrow::before {
    content: '';
    width: 22px; height: 1px;
    background: #0a84ff;
    display: block;
}
.auth-l-headline {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.05;
    margin: 0 0 1rem;
    letter-spacing: -0.01em;
}
.auth-l-headline span {
    background: linear-gradient(135deg, #0a84ff 0%, #5cc8ff 55%, #0a84ff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: authGrad 4s linear infinite;
}
@keyframes authGrad { 0%{background-position:0% center} 100%{background-position:200% center} }

.auth-l-sub {
    color: #8080a0;
    font-size: 0.86rem;
    line-height: 1.75;
    max-width: 320px;
    margin: 0 0 2rem;
}
.auth-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.auth-feature {
    display: flex;
    align-items: center;
    gap: 11px;
}
.auth-feature-icon {
    width: 30px; height: 30px; flex-shrink: 0;
    border-radius: 8px;
    background: rgba(10,132,255,0.10);
    border: 1px solid rgba(10,132,255,0.20);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.82rem;
    color: #0a84ff;
}
.auth-feature-text {
    font-size: 0.80rem;
    color: #8080a0;
    line-height: 1.45;
}
.auth-feature-text strong { color: #ddd; font-weight: 500; }

/* Bottom strip */
.auth-left-bottom {
    flex-shrink: 0;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.auth-stats-row {
    display: flex;
    gap: 0;
}
.auth-stat {
    flex: 1;
    padding-right: 1.2rem;
    border-right: 1px solid rgba(255,255,255,0.06);
    margin-right: 1.2rem;
}
.auth-stat:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.auth-stat-val   { font-family: 'Rajdhani', sans-serif; font-size: 1.5rem; font-weight: 700; color: #0a84ff; line-height: 1; }
.auth-stat-label { font-size: 0.68rem; color: #8080a0; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }

/* Testimonial variant */
.auth-testimonial-text {
    font-size: 0.82rem;
    color: #8080a0;
    line-height: 1.65;
    font-style: italic;
    margin-bottom: 10px;
}
.auth-testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
}
.auth-testimonial-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(10,132,255,0.10);
    border: 1px solid rgba(10,132,255,0.22);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    color: #0a84ff;
    flex-shrink: 0;
}
.auth-testimonial-name { font-size: 0.78rem; color: #ddd; font-weight: 500; }
.auth-testimonial-role { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; color: #8080a0; }
.auth-stars { display: flex; gap: 2px; margin-left: auto; }
.auth-stars i { color: #ff9f0a; font-size: 0.65rem; }

/* ══════════════════════════════════════
   RIGHT PANEL
══════════════════════════════════════ */
.auth-right {
    background: #06060e;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 2rem;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}
.auth-right::before {
    content: '';
    position: absolute;
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(10,132,255,0.05), transparent 70%);
    top: -100px; right: -100px;
    pointer-events: none;
}

/* Mobile brand shown only on small screens */
.auth-mobile-brand {
    display: none;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none !important;
    margin-bottom: 2rem;
    flex-shrink: 0;
}
@media (max-width: 991px) { .auth-mobile-brand { display: inline-flex; } }

.auth-form-wrap {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

/* ── Form header ─────────────────────────────────────────────── */
.auth-form-header { margin-bottom: 1.6rem; }
.auth-form-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: #0a84ff;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.45rem;
    display: block;
}
.auth-form-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.15rem;
    line-height: 1.1;
}
.auth-form-sub {
    font-size: 0.82rem;
    color: #8080a0;
    margin: 0;
    line-height: 1;
}
.auth-form-sub a {
    color: #0a84ff !important;
    text-decoration: none !important;
    transition: color 0.2s;
}
.auth-form-sub a:hover { color: #3d9eff !important; }

/* ── Alerts ──────────────────────────────────────────────────── */
.auth-validation-errors {
    background: rgba(255,69,58,0.07);
    border: 1px solid rgba(255,69,58,0.22);
    border-radius: 9px;
    padding: 0.8rem 1rem;
    margin-bottom: 1.1rem;
}
.auth-validation-errors p {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ff6b6b;
    margin: 0 0 0.35rem;
}
.auth-validation-errors ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.auth-validation-errors ul li {
    font-size: 0.76rem;
    color: rgba(255,107,107,0.85);
    padding: 1px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}
.auth-validation-errors ul li::before { content: '→'; color: #ff453a; font-size: 0.68rem; }

.auth-status-msg {
    background: rgba(48,209,88,0.08);
    border: 1px solid rgba(48,209,88,0.22);
    border-radius: 9px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.1rem;
    font-size: 0.8rem;
    color: #30d158;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Form fields ─────────────────────────────────────────────── */
.auth-field {
    margin-bottom: 0.15rem;
}

.auth-label {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: #8080a0 !important;
    margin: 0 0 0.15rem !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    width: auto !important;
}

.auth-input-wrap {
    position: relative;
    display: block;
}

/* Input icon */
.auth-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #8080a0;
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 2;
    transition: color 0.2s;
    line-height: 1;
}

/* THE ACTUAL INPUT — override Bootstrap completely */
.auth-input {
    display: block !important;
    width: 100% !important;
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 9px !important;
    padding: 0.68rem 1rem 0.68rem 2.5rem !important;
    color: #e2e2ec !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.86rem !important;
    line-height: 1.4 !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    transition: border-color 0.22s, background 0.22s, box-shadow 0.22s !important;
}
.auth-input::placeholder { color: #4a4a62 !important; }
.auth-input:focus {
    border-color: rgba(10,132,255,0.55) !important;
    background: rgba(10,132,255,0.05) !important;
    box-shadow: 0 0 0 3px rgba(10,132,255,0.11) !important;
    color: #fff !important;
}
.auth-input:focus ~ .auth-input-icon,
.auth-input-wrap:focus-within .auth-input-icon { color: #0a84ff; }

.auth-input.is-invalid {
    border-color: rgba(255,69,58,0.55) !important;
    background: rgba(255,69,58,0.04) !important;
    box-shadow: none !important;
    background-image: none !important; /* kill Bootstrap's X icon */
}
.auth-input.is-valid {
    border-color: rgba(48,209,88,0.45) !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* Password with eye toggle */
.auth-input--pw { padding-right: 2.7rem !important; }
.auth-pw-toggle {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    border: none !important;
    color: #4a4a62;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 3px;
    line-height: 1;
    transition: color 0.2s;
    z-index: 2;
}
.auth-pw-toggle:hover { color: #0a84ff; }

/* Two-column row */
.auth-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
@media (max-width: 480px) { .auth-fields-row { grid-template-columns: 1fr; } }

/* Password strength */
.auth-pw-strength { margin-top: 6px; }
.auth-pw-bars { display: flex; gap: 4px; margin-bottom: 3px; }
.auth-pw-bar {
    flex: 1;
    height: 3px;
    border-radius: 3px;
    background: rgba(255,255,255,0.07);
    transition: background 0.3s;
}
.auth-pw-bar.weak   { background: #ff453a; }
.auth-pw-bar.medium { background: #ff9f0a; }
.auth-pw-bar.strong { background: #30d158; }
.auth-pw-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    color: #8080a0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    min-height: 14px;
    display: block;
}

/* Forgot password */
.auth-forgot {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.64rem;
    color: #8080a0 !important;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: color 0.2s;
}
.auth-forgot:hover { color: #0a84ff !important; }

/* Checkbox row — override Bootstrap */
.auth-checkbox-row {
    display: flex !important;
    align-items: flex-start !important;
    gap: 9px !important;
    margin-bottom: 0.9rem !important;
    padding: 0 !important;
}
.auth-checkbox {
    width: 15px !important;
    height: 15px !important;
    flex-shrink: 0 !important;
    margin: 2px 0 0 !important;
    accent-color: #0a84ff !important;
    cursor: pointer;
}
.auth-checkbox-label {
    font-size: 0.79rem !important;
    color: #8080a0 !important;
    line-height: 1.5 !important;
    cursor: pointer !important;
    margin: 0 !important;
    background: transparent !important;
    padding: 0 !important;
}
.auth-checkbox-label a { color: #0a84ff !important; text-decoration: none !important; }
.auth-checkbox-label a:hover { color: #3d9eff !important; }

/* Submit button */
.auth-submit {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: #0a84ff !important;
    color: #fff !important;
    border: none !important;
    border-radius: 9px !important;
    padding: 0.78rem 1.5rem !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.98rem !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    margin-top: 0.3rem !important;
    position: relative !important;
    overflow: hidden !important;
    transition: background 0.22s, box-shadow 0.22s, transform 0.18s !important;
}
.auth-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent 60%);
    opacity: 0;
    transition: opacity 0.22s;
}
.auth-submit:hover {
    background: #3d9eff !important;
    box-shadow: 0 0 26px rgba(10,132,255,0.35), 0 4px 14px rgba(10,132,255,0.3) !important;
    transform: translateY(-1px) !important;
}
.auth-submit:hover::before { opacity: 1; }

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 1.1rem 0;
    color: #3a3a55;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.06);
}

/* Social button */
.auth-social-btn {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 9px !important;
    padding: 0.68rem 1rem !important;
    color: #e2e2ec !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.84rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: background 0.22s, border-color 0.22s !important;
}
.auth-social-btn:hover {
    background: rgba(255,255,255,0.07) !important;
    border-color: rgba(255,255,255,0.14) !important;
    color: #fff !important;
}

/* Switch link bottom */
.auth-switch {
    text-align: center;
    margin-top: 1.2rem;
    font-size: 0.81rem;
    color: #8080a0;
}
.auth-switch a {
    color: #0a84ff !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: color 0.2s;
}
.auth-switch a:hover { color: #3d9eff !important; }

/* Optional label tag */
.auth-optional {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.58rem;
    color: #3a3a55;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 4px;
    font-weight: 400;
}



.ta-brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none !important; }
.ta-logo-img { width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(10,132,255,0.25); }