/* =========================================================================
   SOC — ULTRA ENTRY LOGIN (Splunk ES / Chronicle / Sentinel 2026 inspired)
   Vanilla CSS. Pa framework. Mobile-first. AA contrast. Reduced-motion safe.
   ========================================================================= */

:root {
    --bg: #0a0f1a;
    --bg-2: #0d1524;
    --surface: #141b2d;
    --surface-2: #1a2238;
    --surface-hi: #1f2a44;
    --border: rgba(0, 191, 165, 0.18);
    --border-soft: rgba(148, 163, 184, 0.10);
    --primary: #00bfa5;       /* teal SOC */
    --primary-600: #00a38f;
    --primary-300: #4fd7c3;
    --accent: #ff6f61;        /* alert coral */
    --accent-soft: rgba(255, 111, 97, 0.15);
    --warn: #fbbf24;
    --ok: #22c55e;
    --text: #e2e8f0;
    --text-dim: #94a3b8;
    --text-mute: #64748b;
    --danger: #f43f5e;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html, body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body {
    position: relative;
    background:
        radial-gradient(ellipse at 12% 18%, rgba(0, 191, 165, 0.18) 0%, transparent 45%),
        radial-gradient(ellipse at 88% 82%, rgba(255, 111, 97, 0.12) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 191, 165, 0.05) 0%, transparent 70%),
        var(--bg);
}

/* Grid overlay (topographic feel) */
.soc-grid {
    position: fixed; inset: 0;
    background-image:
        linear-gradient(rgba(0, 191, 165, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 191, 165, 0.05) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at center, black 25%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 25%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}

/* Scanning line — gives SOC/radar feel */
.soc-scanline {
    position: fixed; left: 0; right: 0; top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.45;
    box-shadow: 0 0 20px var(--primary);
    animation: scanline 6s linear infinite;
    pointer-events: none;
    z-index: 1;
}
@keyframes scanline {
    0%   { transform: translateY(0); }
    100% { transform: translateY(100vh); }
}

/* ============== LAYOUT ============== */
.soc-layout {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .soc-layout {
        grid-template-columns: 1.15fr 1fr;
    }
}

/* ============== LEFT PANEL (visual) ============== */
.soc-visual {
    position: relative;
    padding: 32px 24px 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-height: 60vh;
    background:
        linear-gradient(180deg, rgba(20, 27, 45, 0.4) 0%, transparent 60%),
        radial-gradient(circle at 30% 40%, rgba(0, 191, 165, 0.08), transparent 55%);
    border-bottom: 1px solid var(--border);
}

@media (min-width: 1024px) {
    .soc-visual {
        padding: 56px 56px 48px;
        border-bottom: none;
        border-right: 1px solid var(--border);
    }
}

.soc-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}
.soc-brand-mark {
    width: 54px; height: 54px;
    position: relative;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--primary), #0891b2);
    border-radius: 14px;
    box-shadow:
        0 10px 30px rgba(0, 191, 165, 0.35),
        inset 0 1px 0 rgba(255,255,255,0.15);
}
.soc-brand-mark svg { width: 28px; height: 28px; color: #fff; }
.soc-brand-mark::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 1px solid rgba(0, 191, 165, 0.35);
    border-radius: 18px;
    animation: brand-ring 3s ease-in-out infinite;
}
@keyframes brand-ring {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 0;   transform: scale(1.15); }
}
.soc-brand-text strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
}
.soc-brand-text small {
    display: block;
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-top: 2px;
}

/* Heading & lead */
.soc-heading h1 {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.025em;
    font-weight: 800;
    color: var(--text);
}
.soc-heading h1 .grad {
    background: linear-gradient(120deg, var(--primary-300), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.soc-heading p {
    margin-top: 14px;
    max-width: 540px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-dim);
}

/* Radar SVG block */
.soc-radar {
    position: relative;
    align-self: flex-start;
    width: min(360px, 100%);
    aspect-ratio: 1 / 1;
    margin-top: 8px;
}
.soc-radar svg { width: 100%; height: 100%; display: block; }
.soc-radar .sweep {
    transform-origin: 50% 50%;
    animation: radar-sweep 4s linear infinite;
}
@keyframes radar-sweep {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.soc-radar .blip {
    opacity: 0;
    animation: blip 4s ease-in-out infinite;
}
.soc-radar .blip.b2 { animation-delay: 1.2s; }
.soc-radar .blip.b3 { animation-delay: 2.1s; }
.soc-radar .blip.b4 { animation-delay: 3.0s; }
@keyframes blip {
    0%, 70%, 100% { opacity: 0; r: 3; }
    20%           { opacity: 1; r: 5; }
    40%           { opacity: 0.6; r: 4; }
}

/* Threat-level bar */
.soc-threat {
    display: grid;
    gap: 10px;
    padding: 16px 18px;
    background: rgba(20, 27, 45, 0.6);
    border: 1px solid var(--border);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: 560px;
}
.soc-threat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.soc-threat-head strong { color: var(--primary-300); }
.soc-threat-bar {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ok) 0%, var(--warn) 55%, var(--accent) 100%);
    overflow: hidden;
}
.soc-threat-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    animation: pulse-wave 2.6s ease-in-out infinite;
}
@keyframes pulse-wave {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.soc-threat-marker {
    position: relative;
    height: 0;
}
.soc-threat-marker span {
    position: absolute;
    top: -14px;
    width: 2px;
    height: 16px;
    background: var(--text);
    box-shadow: 0 0 8px rgba(255,255,255,0.6);
    border-radius: 2px;
    /* NORMAL = ~20% */
    left: 20%;
}

/* Status badges live */
.soc-statuses {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.soc-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px 7px 10px;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    border: 1px solid var(--border-soft);
    background: rgba(20, 27, 45, 0.55);
    color: var(--text-dim);
    backdrop-filter: blur(6px);
}
.soc-badge .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 10px currentColor;
    animation: dot-blink 1.6s ease-in-out infinite;
}
.soc-badge.is-ok       { color: var(--ok);       border-color: rgba(34,197,94,0.35); }
.soc-badge.is-ok .dot  { background: var(--ok); }
.soc-badge.is-primary  { color: var(--primary-300); border-color: rgba(0,191,165,0.35); }
.soc-badge.is-primary .dot { background: var(--primary-300); }
.soc-badge.is-warn     { color: var(--warn); border-color: rgba(251,191,36,0.35); }
.soc-badge.is-warn .dot{ background: var(--warn); }
@keyframes dot-blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(0.8); }
}

/* Live stats (nga DB) */
.soc-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 560px;
    margin-top: 4px;
}
.soc-stat {
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(20, 27, 45, 0.7), rgba(20, 27, 45, 0.4));
    border: 1px solid var(--border);
    border-radius: 12px;
}
.soc-stat .val {
    display: block;
    font-family: var(--mono);
    font-weight: 700;
    font-size: 22px;
    color: var(--primary-300);
    letter-spacing: -0.01em;
}
.soc-stat .lbl {
    display: block;
    margin-top: 4px;
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--text-mute);
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

/* ============== RIGHT PANEL (form) ============== */
.soc-form-wrap {
    position: relative;
    padding: 36px 20px 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(180deg, transparent 0%, rgba(0, 191, 165, 0.03) 60%, transparent 100%);
}

@media (min-width: 1024px) {
    .soc-form-wrap { padding: 48px 56px; }
}

.soc-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 32px 28px;
    border-radius: 20px;
    /* glassmorphism */
    background:
        linear-gradient(160deg, rgba(20, 27, 45, 0.82), rgba(13, 21, 36, 0.82));
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255,255,255,0.04);
    isolation: isolate;
}

/* Border gradient teal → coral */
.soc-card::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, var(--primary) 0%, rgba(0,191,165,0.15) 40%, rgba(255,111,97,0.35) 80%, var(--accent) 100%);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
}

.soc-card-head {
    text-align: center;
    margin-bottom: 24px;
}
.soc-card-head .glyph {
    width: 60px; height: 60px;
    margin: 0 auto 14px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 14px 36px rgba(0, 191, 165, 0.35);
}
.soc-card-head .glyph svg { width: 28px; height: 28px; }
.soc-card-head h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}
.soc-card-head p {
    margin-top: 6px;
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--text-mute);
    letter-spacing: 0.06em;
}

/* Error alert */
.soc-alert {
    margin-bottom: 18px;
    padding: 12px 14px 12px 42px;
    position: relative;
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.35);
    border-radius: 10px;
    color: #fca5a5;
    font-size: 13px;
    line-height: 1.45;
}
.soc-alert::before {
    content: '!';
    position: absolute;
    left: 12px; top: 50%;
    transform: translateY(-50%);
    width: 22px; height: 22px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(244, 63, 94, 0.25);
    color: #fecaca;
    font-weight: 700;
    font-size: 13px;
    font-family: var(--mono);
}

/* Form fields */
.soc-field { margin-bottom: 16px; }
.soc-field label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.soc-input {
    position: relative;
}
.soc-input input {
    width: 100%;
    padding: 13px 14px 13px 44px;
    background: rgba(10, 15, 26, 0.6);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.soc-input input::placeholder { color: var(--text-mute); }
.soc-input input:hover {
    border-color: rgba(0, 191, 165, 0.35);
}
.soc-input input:focus,
.soc-input input:focus-visible {
    border-color: var(--primary);
    background: rgba(10, 15, 26, 0.9);
    box-shadow:
        0 0 0 3px rgba(0, 191, 165, 0.18),
        0 0 20px rgba(0, 191, 165, 0.15);
}
.soc-input .ico {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    width: 18px; height: 18px;
    color: var(--text-mute);
    transition: color 0.18s;
    pointer-events: none;
}
.soc-input input:focus ~ .ico { color: var(--primary-300); }

.soc-show-pw {
    position: absolute;
    right: 8px; top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    padding: 8px;
    color: var(--text-mute);
    cursor: pointer;
    border-radius: 6px;
    display: grid; place-items: center;
}
.soc-show-pw:hover { color: var(--primary-300); background: rgba(0,191,165,0.08); }
.soc-show-pw:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.soc-show-pw svg { width: 18px; height: 18px; }

/* Submit button */
.soc-submit {
    width: 100%;
    margin-top: 8px;
    padding: 14px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-600));
    color: #fff;
    border: 0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow:
        0 12px 30px rgba(0, 191, 165, 0.35),
        inset 0 1px 0 rgba(255,255,255,0.2);
    transition: transform 0.16s, box-shadow 0.16s, filter 0.16s;
}
.soc-submit:hover {
    transform: translateY(-1px);
    box-shadow:
        0 18px 42px rgba(0, 191, 165, 0.5),
        inset 0 1px 0 rgba(255,255,255,0.25);
    filter: brightness(1.04);
}
.soc-submit:active { transform: translateY(0); }
.soc-submit:focus-visible { outline: 2px solid var(--primary-300); outline-offset: 3px; }
.soc-submit svg { width: 16px; height: 16px; }

/* Footer disclaimer */
.soc-card-foot {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px dashed var(--border-soft);
    text-align: center;
    font-family: var(--mono);
    font-size: 10.5px;
    line-height: 1.65;
    color: var(--text-mute);
    letter-spacing: 0.04em;
}
.soc-card-foot .sep { color: var(--text-mute); margin: 0 6px; }
.soc-card-foot strong { color: var(--primary-300); font-weight: 600; }

/* Global footer bar */
.soc-page-foot {
    position: relative;
    z-index: 2;
    padding: 18px 24px;
    text-align: center;
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--text-mute);
    letter-spacing: 0.08em;
    border-top: 1px solid var(--border-soft);
    background: rgba(10, 15, 26, 0.45);
}
.soc-page-foot a { color: var(--text-dim); text-decoration: none; }
.soc-page-foot a:hover { color: var(--primary-300); }

/* ============== A11Y / REDUCED MOTION ============== */
@media (prefers-reduced-motion: reduce) {
    .soc-scanline,
    .soc-brand-mark::after,
    .soc-radar .sweep,
    .soc-radar .blip,
    .soc-threat-bar::after,
    .soc-badge .dot {
        animation: none !important;
    }
    .soc-submit { transition: none; }
}

/* Focus visible globally */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Small screens polish */
@media (max-width: 480px) {
    .soc-visual { padding: 28px 20px 32px; }
    .soc-form-wrap { padding: 28px 16px 36px; }
    .soc-card { padding: 26px 22px; }
    .soc-stats { grid-template-columns: 1fr; }
    .soc-radar { width: min(260px, 80%); }
}
