/* SmartPhish Cyber-Terminal Design System - High Density v2 */

:root {
    --cyber-cyan: #00e5ff;
    --cyber-cyan-glow: rgba(0, 229, 255, 0.4);
    --cyber-cyan-dim: #008891;
    --cyber-bg: #090e11;
    --cyber-card: #0d1417;
    --cyber-border: #1a2529;
    --cyber-text: #8b9a9d;
    --cyber-green: #4ade80;
}

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

body.smartphish-login-shell {
    font-family: 'Space Mono', 'Courier New', monospace;
    background:
        radial-gradient(circle at 18% 20%, rgba(57, 255, 136, 0.13), transparent 22%),
        radial-gradient(circle at 82% 28%, rgba(255, 45, 85, 0.12), transparent 24%),
        radial-gradient(circle at 50% 88%, rgba(0, 102, 255, 0.16), transparent 30%),
        var(--cyber-bg) !important;
    color: var(--cyber-text);
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-size: 12px;
}

body.smartphish-login-shell::before,
body.smartphish-login-shell::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

body.smartphish-login-shell::before {
    background:
        linear-gradient(115deg, transparent 0 35%, rgba(57, 255, 136, 0.28) 36%, transparent 37% 58%, rgba(0, 229, 255, 0.23) 59%, transparent 60%),
        linear-gradient(65deg, transparent 0 44%, rgba(255, 45, 85, 0.22) 45%, transparent 46% 72%, rgba(0, 102, 255, 0.24) 73%, transparent 74%);
    background-size: 220% 220%, 190% 190%;
    filter: blur(0.2px);
    opacity: 0.55;
    animation: electricSweep 7s linear infinite;
}

body.smartphish-login-shell::after {
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: radial-gradient(circle at center, #000 35%, transparent 78%);
    animation: gridPulse 4s ease-in-out infinite;
}

.cyber-header,
.smartphish-login-grid,
.cyber-footer {
    position: relative;
    z-index: 1;
}

/* --- COMPACT HEADER --- */
.cyber-header {
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cyber-text);
}

.cyber-status-group, .cyber-terminal-id {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cyber-status-node {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--cyber-cyan);
}

.cyber-status-dot {
    width: 6px;
    height: 6px;
    background: var(--cyber-green);
    box-shadow: 0 0 6px var(--cyber-green);
}

.cyber-terminal-id {
    text-align: right;
}

/* --- MAIN LAYOUT --- */
.smartphish-login-grid {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

/* Left Section - Compact */
.smartphish-login-showcase {
    flex: 1;
    border-left: 1px solid rgba(255,255,255,0.05);
    padding-left: 30px;
}

.cyber-logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.cyber-logo-icon {
    width: 28px;
    height: 28px;
    color: var(--cyber-cyan);
    filter: drop-shadow(0 0 5px var(--cyber-cyan-glow));
}

.cyber-logo-wrap h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--cyber-cyan);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    filter: drop-shadow(0 0 8px var(--cyber-cyan-glow));
    font-family: 'Space Grotesk', sans-serif;
}

.cyber-description {
    font-size: 13px;
    line-height: 1.5;
    max-width: 320px;
    color: #c4d2d4;
    margin-bottom: 30px;
}

.cyber-encryption-status {
    width: 100%;
    margin-top: 20px;
}

.cyber-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    margin-bottom: 6px;
    color: var(--cyber-text);
    text-transform: uppercase;
}

.cyber-label-row .val-green {
    color: var(--cyber-green);
    font-weight: 700;
}

.cyber-progress-bar {
    height: 3px;
    display: flex;
    gap: 3px;
}

.cyber-progress-segment {
    flex: 1;
    height: 100%;
    background: #1a2529;
}

.cyber-progress-segment.active {
    background: var(--cyber-cyan);
    box-shadow: 0 0 5px var(--cyber-cyan-glow);
}

/* Right Section - Compact */
.smartphish-login-card-wrap {
    flex: 1;
    max-width: 380px;
    position: relative;
}

.smartphish-login-card {
    background: var(--cyber-card);
    border: 1px solid var(--cyber-border);
    padding: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 34px rgba(0, 229, 255, 0.08);
    animation: cardCurrent 5s ease-in-out infinite;
}

.smartphish-login-card > * {
    position: relative;
    z-index: 1;
}

.smartphish-login-card .electric-current {
    display: none;
}

.smartphish-login-card::selection {
    background: var(--cyber-cyan);
    color: #001014;
}

/* Corner Brackets */
.smartphish-login-card::after {
    content: '';
    position: absolute;
    top: -1px; right: -1px;
    width: 15px; height: 15px;
    border-top: 1px solid var(--cyber-cyan);
    border-right: 1px solid var(--cyber-cyan);
}

.smartphish-login-card::before {
    content: '';
    position: absolute;
    bottom: -1px; left: -1px;
    width: 15px; height: 15px;
    border-bottom: 1px solid var(--cyber-cyan);
    border-left: 1px solid var(--cyber-cyan);
}

.smartphish-login-card::marker {
    color: var(--cyber-cyan);
}

.smartphish-login-card-wrap::before {
    content: "";
    position: absolute;
    width: 120%;
    height: 2px;
    left: -10%;
    top: 18%;
    background: linear-gradient(90deg, transparent, #39ff88, #ff2d55, #0066ff, transparent);
    box-shadow: 0 0 16px rgba(57, 255, 136, 0.55), 0 0 26px rgba(0, 102, 255, 0.35);
    opacity: 0.55;
    transform: translateY(-90px);
    animation: currentLine 3.8s ease-in-out infinite;
}

.cyber-auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.cyber-auth-header h2 {
    font-size: 16px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    font-weight: 500;
}

.cyber-tag {
    font-size: 8px;
    padding: 3px 8px;
    border: 1px solid var(--cyber-cyan-dim);
    color: var(--cyber-cyan);
    background: rgba(0, 229, 255, 0.05);
}

/* --- SIGNUP SPECIFIC (PROVISIONING PORTAL) --- */
.provisioning-portal-wrap {
    max-width: 800px !important;
    width: 90% !important;
}

.provisioning-header {
    margin-bottom: 20px;
}

.provisioning-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
}

.provisioning-subtitle {
    font-size: 10px;
    color: var(--cyber-cyan);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.status-awaiting {
    background: rgba(0,0,0,0.3);
    border: 1px solid #1a2529;
    padding: 4px 10px;
    font-size: 9px;
    color: var(--cyber-text);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.status-indicator-red {
    width: 4px;
    height: 4px;
    background: #ff2d55;
}

/* FORM FIELDS - COMPACT */
.smartphish-auth-fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cyber-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.cyber-input-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 9px;
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.cyber-input {
    background: #090e11;
    border: 1px solid var(--cyber-border);
    height: 36px;
    padding: 0 12px;
    color: #fff;
    font-family: inherit;
    font-size: 11px;
    width: 100%;
    transition: all 0.3s;
}

.cyber-input:focus {
    outline: none;
    border-color: var(--cyber-cyan-dim);
    background: rgba(0, 229, 255, 0.02);
    box-shadow: 0 0 0 1px rgba(57, 255, 136, 0.28), 0 0 18px rgba(0, 102, 255, 0.14);
}

.pw-bars {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    gap: 2px;
}

.pw-bar {
    width: 3px;
    height: 10px;
    background: var(--cyber-cyan);
}
.pw-bar.dim {
    background: #1a2529;
}

.cyber-link {
    font-size: 9px;
    color: var(--cyber-text);
    text-decoration: underline;
    text-transform: uppercase;
    margin-top: 10px;
    display: inline-block;
}

.cyber-link:hover {
    color: var(--cyber-cyan);
}

.smartphish-submit {
    margin-top: 25px;
}

.cyber-button {
    width: 100%;
    height: 44px;
    background: var(--cyber-cyan);
    color: #000;
    border: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.cyber-button:hover {
    background: #fff;
    box-shadow: 0 0 10px var(--cyber-cyan-glow), 0 0 26px rgba(57, 255, 136, 0.34), 0 0 34px rgba(255, 45, 85, 0.2);
}

/* --- COMPACT FOOTER --- */
.cyber-footer {
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #5a6a6e;
    text-transform: uppercase;
}

.cyber-warning {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #5a6a6e;
}

/* Animations */
@keyframes flicker {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

@keyframes electricSweep {
    0% { background-position: 0% 45%, 100% 30%; opacity: 0.35; }
    35% { opacity: 0.7; }
    70% { opacity: 0.42; }
    100% { background-position: 220% 55%, -120% 70%; opacity: 0.35; }
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.24; }
    50% { opacity: 0.46; }
}

@keyframes cardCurrent {
    0%, 100% { border-color: rgba(0, 229, 255, 0.32); }
    33% { border-color: rgba(57, 255, 136, 0.42); }
    66% { border-color: rgba(255, 45, 85, 0.35); }
}

@keyframes currentLine {
    0%, 100% { transform: translateY(-95px) scaleX(0.82); opacity: 0; }
    18% { opacity: 0.6; }
    50% { transform: translateY(210px) scaleX(1); opacity: 0.45; }
    82% { opacity: 0.65; }
}

.cyber-logo-icon {
    animation: flicker 4s infinite ease-in-out;
}

/* Enterprise chart readability */
:root {
    --sp-chart-card-bg: var(--sp-panel);
    --sp-chart-card-border: var(--sp-border);
    --sp-chart-axis-text: var(--sp-text-muted);
    --sp-chart-grid-line: rgba(148, 163, 184, 0.22);
    --sp-chart-tooltip-bg: var(--sp-panel);
    --sp-chart-tooltip-text: var(--sp-text);
    --sp-chart-tooltip-border: var(--sp-border);
}

html[data-theme="simple"] {
    --sp-chart-card-bg: #ffffff;
    --sp-chart-card-border: #e2e8f0;
    --sp-chart-axis-text: #334155;
    --sp-chart-grid-line: #dbe3ef;
    --sp-chart-tooltip-bg: #ffffff;
    --sp-chart-tooltip-text: #0f172a;
    --sp-chart-tooltip-border: #cbd5e1;
}

html[data-theme="dark"],
html:not([data-theme]) {
    --sp-chart-card-bg: #111827;
    --sp-chart-card-border: rgba(148, 163, 184, 0.24);
    --sp-chart-axis-text: #cbd5e1;
    --sp-chart-grid-line: rgba(148, 163, 184, 0.22);
    --sp-chart-tooltip-bg: #0f172a;
    --sp-chart-tooltip-text: #f8fafc;
    --sp-chart-tooltip-border: rgba(148, 163, 184, 0.45);
}

html[data-theme="premium"] {
    --sp-chart-card-bg: rgba(18, 18, 18, 0.92);
    --sp-chart-card-border: rgba(220, 38, 38, 0.32);
    --sp-chart-axis-text: #f5f5f5;
    --sp-chart-grid-line: rgba(248, 113, 113, 0.22);
    --sp-chart-tooltip-bg: #050505;
    --sp-chart-tooltip-text: #ffffff;
    --sp-chart-tooltip-border: rgba(220, 38, 38, 0.48);
}

.smartphish-chart-panel,
.smartphish-dashboard-widget,
.sp-panel {
    background: var(--sp-chart-card-bg);
    border-color: var(--sp-chart-card-border);
}

.smartphish-chart,
.smartphish-dashboard-widget .smartphish-chart,
.smartphish-chart-panel .smartphish-chart {
    width: 100%;
    min-height: 340px;
}

.smartphish-chart-small,
.smartphish-chart-panel .smartphish-chart-small {
    min-height: 280px;
}

.highcharts-background {
    fill: transparent;
}

.highcharts-axis-labels text,
.highcharts-axis-title,
.highcharts-legend-item text {
    fill: var(--sp-chart-axis-text) !important;
    color: var(--sp-chart-axis-text) !important;
    font-weight: 600;
}

.highcharts-grid-line {
    stroke: var(--sp-chart-grid-line);
}

.highcharts-axis-line,
.highcharts-tick {
    stroke: var(--sp-chart-card-border);
}

.highcharts-tooltip-box {
    fill: var(--sp-chart-tooltip-bg);
    stroke: var(--sp-chart-tooltip-border);
}

.highcharts-tooltip text {
    fill: var(--sp-chart-tooltip-text) !important;
    color: var(--sp-chart-tooltip-text) !important;
}

@media (max-width: 991px) {
    .smartphish-chart,
    .smartphish-dashboard-widget .smartphish-chart,
    .smartphish-chart-panel .smartphish-chart {
        min-height: 300px;
    }
}
