/* Argus auth — immersive split shell (distinct from marketing welcome) */

.auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: "Outfit", "Segoe UI", sans-serif;
    background: #07111f;
    color: #0B1220;
    overflow-x: hidden;
}

.auth-stage {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
}

.auth-brand {
    position: relative;
    overflow: hidden;
    color: #E8EEF5;
    padding: 36px 40px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    isolation: isolate;
}

.auth-brand-bg {
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(13, 148, 136, 0.28), transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 90%, rgba(37, 99, 235, 0.18), transparent 50%),
        linear-gradient(165deg, #07111f 0%, #0B1220 45%, #111827 100%);
}

.auth-brand-grid {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(232, 238, 245, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 238, 245, 0.05) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(ellipse 70% 60% at 40% 40%, #000 15%, transparent 75%);
    animation: auth-grid-drift 28s linear infinite;
}

.auth-brand-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(56px);
    opacity: 0.55;
    z-index: -1;
    animation: auth-orb-pulse 8s ease-in-out infinite;
}

.auth-brand-orb-a {
    width: 280px;
    height: 280px;
    top: -40px;
    right: -40px;
    background: rgba(13, 148, 136, 0.45);
}

.auth-brand-orb-b {
    width: 220px;
    height: 220px;
    bottom: 8%;
    left: -50px;
    background: rgba(37, 99, 235, 0.28);
    animation-delay: -3s;
}

@keyframes auth-grid-drift {
    from { background-position: 0 0; }
    to { background-position: 36px 36px; }
}

@keyframes auth-orb-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.12); opacity: 0.72; }
}

.auth-brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    margin-bottom: 48px;
}

.auth-brand-mark img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    filter: invert(1);
}

.auth-brand-mark span {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.auth-brand-kicker {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #2DD4BF;
    margin: 0 0 16px;
}

.auth-brand-title {
    font-size: clamp(2.4rem, 4.5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 0.98;
    margin: 0 0 18px;
    color: #fff;
}

.auth-brand-lead {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(232, 238, 245, 0.72);
    max-width: 22rem;
    margin: 0 0 28px;
}

.auth-brand-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.auth-brand-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: rgba(232, 238, 245, 0.88);
}

.auth-brand-points span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #14B8A6;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.2);
    flex-shrink: 0;
}

.auth-brand-foot {
    margin: 40px 0 0;
    font-size: 12px;
    color: rgba(232, 238, 245, 0.45);
    font-family: "JetBrains Mono", ui-monospace, monospace;
}

.auth-panel {
    background:
        linear-gradient(180deg, #F7F9FC 0%, #EEF2F7 100%);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

[data-theme="dark"] .auth-panel {
    background: linear-gradient(180deg, #0B1220 0%, #111827 100%);
    color: #E5E7EB;
}

.auth-panel-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 28px;
    gap: 12px;
}

.auth-back {
    color: #64748B;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.auth-back:hover { color: #0D9488; }

[data-theme="dark"] .auth-back { color: #94A3B8; }

.auth-panel-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-panel-actions .theme-toggle {
    background: rgba(11, 18, 32, 0.06);
    border-color: rgba(11, 18, 32, 0.1);
}

.auth-panel-actions .theme-toggle-label {
    color: #64748B;
}

[data-theme="dark"] .auth-panel-actions .theme-toggle {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .auth-panel-actions .theme-toggle-label {
    color: #94A3B8;
}

.auth-panel-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px 48px;
}

.auth-panel-body .auth-container {
    width: 100%;
    min-height: 0;
    padding: 0;
    background: transparent;
    display: flex;
    justify-content: center;
}

.auth-panel-body .auth-wrapper {
    width: 100%;
    max-width: 420px;
    margin: 0;
}

.auth-panel-body .auth-logo {
    display: none !important;
}

/* Form card inside auth panel */
.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid rgba(11, 18, 32, 0.08);
    border-radius: 20px;
    padding: 36px 32px 28px;
    box-shadow: 0 20px 50px rgba(11, 18, 32, 0.1);
    animation: auth-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

[data-theme="dark"] .auth-card {
    background: #111827;
    border-color: rgba(148, 163, 184, 0.16);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    color: #E5E7EB;
}

@keyframes auth-card-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-header {
    margin-bottom: 22px;
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 750;
    letter-spacing: -0.035em;
    margin: 0 0 6px;
    color: #0B1220;
}

[data-theme="dark"] .auth-header h1 { color: #F8FAFC; }

.auth-header p {
    margin: 0;
    color: #64748B;
    font-size: 0.95rem;
}

.auth-form { margin-bottom: 8px; }

.form-group { margin-bottom: 16px; }

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: #475569;
    font-family: "JetBrains Mono", ui-monospace, monospace;
}

[data-theme="dark"] .form-label { color: #94A3B8; }

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    box-sizing: border-box;
    border: 1.5px solid rgba(11, 18, 32, 0.12);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    color: #0B1220;
    background: #F8FAFC;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

[data-theme="dark"] .form-input {
    background: #0B1220;
    border-color: rgba(148, 163, 184, 0.2);
    color: #E5E7EB;
}

.form-input:focus {
    outline: none;
    border-color: #0D9488;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
}

[data-theme="dark"] .form-input:focus {
    background: #0f172a;
}

.login-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 0 0 18px;
    padding: 4px;
    background: rgba(11, 18, 32, 0.04);
    border-radius: 12px;
}

[data-theme="dark"] .login-tabs {
    background: rgba(255, 255, 255, 0.04);
}

.login-tab {
    border: 0 !important;
    background: transparent !important;
    padding: 10px 6px !important;
    border-radius: 9px !important;
    cursor: pointer;
    font-size: 0.82rem !important;
    font-weight: 600;
    font-family: inherit;
    color: #64748B !important;
    opacity: 1 !important;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.login-tab.is-active {
    background: #fff !important;
    color: #0B1220 !important;
    box-shadow: 0 2px 8px rgba(11, 18, 32, 0.08);
}

[data-theme="dark"] .login-tab.is-active {
    background: #1E293B !important;
    color: #F8FAFC !important;
}

.btn {
    padding: 13px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 650;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s, filter 0.15s, background 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #0D9488 0%, #0F766E 100%);
    color: #fff;
    box-shadow: 0 8px 20px -6px rgba(13, 148, 136, 0.55);
}

.btn-primary:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.btn-full { width: 100%; }

.btn-ghost {
    width: 100%;
    margin-top: 8px;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 10px;
    color: #64748B;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
}

.btn-ghost:hover { color: #0D9488; }

.auth-hint {
    font-size: 0.8rem;
    color: #64748B;
    margin: 6px 0 0;
}

.auth-links {
    text-align: center;
    padding-top: 20px;
    margin-top: 8px;
    border-top: 1px solid rgba(11, 18, 32, 0.08);
    font-size: 14px;
}

[data-theme="dark"] .auth-links {
    border-top-color: rgba(148, 163, 184, 0.16);
}

.auth-link {
    color: #0D9488;
    text-decoration: none;
    margin: 0 6px;
    font-weight: 600;
}

.auth-separator { opacity: 0.35; }

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

#error.login-error,
#login-error {
    color: #DC2626;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .auth-stage {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        min-height: auto;
        padding: 28px 24px 32px;
    }

    .auth-brand-title {
        font-size: 2.2rem;
    }

    .auth-brand-lead,
    .auth-brand-points {
        display: none;
    }

    .auth-brand-foot { display: none; }

    .auth-panel {
        min-height: auto;
    }

    .auth-panel-body {
        padding: 8px 20px 40px;
        align-items: flex-start;
    }
}
