:root {
    --font-sans:  "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --accent:     #0d9488;
    --accent-rgb: 13, 148, 136;
    --dark-bg:    #0f172a;
    --surface:    #ffffff;
    --border:     #e2e8f0;
    --muted:      #64748b;
}

*, *::before, *::after { box-sizing: border-box; }

body.page-login {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-sans);
    background: var(--dark-bg);
    -webkit-font-smoothing: antialiased;
}

/* ────────────────────────────────────────────────
   Split layout
──────────────────────────────────────────────── */
.login-split {
    display: flex;
    min-height: 100vh;
}

/* ────────────────────────────────────────────────
   Left panel
──────────────────────────────────────────────── */
.login-left {
    position: relative;
    width: 46%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.75rem;
    overflow: hidden;
    background: linear-gradient(175deg,
        #040b16 0%,
        #081422 20%,
        #091c23 45%,
        #071a16 70%,
        #031210 100%
    );
}

/* Top radial glow — the signal source */
.login-left::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 360px;
    height: 360px;
    background: radial-gradient(circle,
        rgba(13, 148, 136, 0.22) 0%,
        rgba(13, 148, 136, 0.06) 45%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}

/* ────────────────────────────────────────────────
   Network canvas
──────────────────────────────────────────────── */
#net-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
}

/* ────────────────────────────────────────────────
   Brand block
──────────────────────────────────────────────── */
.brand-block {
    position: relative;
    z-index: 2;
}

/* Gradient scrim so brand text reads over the canvas */
.brand-block::before {
    content: '';
    position: absolute;
    left: -2.75rem;
    right: -2.75rem;
    bottom: -2.75rem;
    top: -4rem;
    background: linear-gradient(to top,
        rgba(4, 11, 22, 0.97) 0%,
        rgba(4, 11, 22, 0.85) 55%,
        transparent 100%
    );
    z-index: -1;
    pointer-events: none;
}

.brand-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(94, 234, 212, 0.1);
    border: 1px solid rgba(94, 234, 212, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #5eead4;
    margin-bottom: 1.1rem;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: -0.025em;
    line-height: 1.3;
    margin: 0 0 0.4rem;
}

.brand-by {
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(94, 234, 212, 0.6);
    margin: 0 0 1.4rem;
}

.brand-tagline {
    font-size: 0.875rem;
    color: rgba(226, 232, 240, 0.35);
    font-style: italic;
    margin: 0;
}

/* ────────────────────────────────────────────────
   Right panel
──────────────────────────────────────────────── */
.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    background: var(--surface);
    position: relative;
}

/* Hairline divider with teal gradient */
.login-right::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: linear-gradient(to bottom,
        transparent,
        rgba(13, 148, 136, 0.45) 30%,
        rgba(45, 212, 191, 0.65) 50%,
        rgba(13, 148, 136, 0.45) 70%,
        transparent
    );
}

.form-wrap {
    width: 100%;
    max-width: 400px;
    animation: form-in 0.45s ease-out both;
    animation-delay: 0.15s;
}

@keyframes form-in {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* ────────────────────────────────────────────────
   Form header
──────────────────────────────────────────────── */
.form-header {
    margin-bottom: 2rem;
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.04em;
    margin: 0 0 0.45rem;
    line-height: 1.15;
}

.form-sub {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
}

/* ────────────────────────────────────────────────
   Form fields
──────────────────────────────────────────────── */
.field-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #475569;
    margin-bottom: 0.45rem;
}

.login-form .input-group-text {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: var(--muted);
    padding: 0 1rem;
    transition: background 0.15s, border-color 0.15s;
}

.login-form .form-control {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-left: none;
    border-radius: 0 10px 10px 0;
    padding: 0.65rem 1rem;
    font-size: 0.9375rem;
    color: #0f172a;
    transition: background 0.15s, border-color 0.15s;
}

.login-form .form-control::placeholder {
    color: #94a3b8;
}

.login-form .input-group:focus-within .input-group-text,
.login-form .input-group:focus-within .form-control {
    background: #ffffff;
    border-color: var(--accent);
}

.login-form .input-group:focus-within {
    border-radius: 10px;
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.13);
}

.login-form .form-control:focus {
    outline: none;
    box-shadow: none;
}

.forgot-link {
    font-size: 0.825rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s;
}

.forgot-link:hover { color: #0f766e; }

/* ────────────────────────────────────────────────
   Submit button
──────────────────────────────────────────────── */
.btn-signin {
    display: block;
    background: linear-gradient(135deg, #0d9488, #0f766e);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s;
}

.btn-signin:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(var(--accent-rgb), 0.42);
    color: #ffffff;
    opacity: 0.96;
}

.btn-signin:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.25);
}

/* ────────────────────────────────────────────────
   Alert
──────────────────────────────────────────────── */
.alert-danger {
    font-size: 0.875rem;
    border-radius: 10px;
}

/* ────────────────────────────────────────────────
   Mobile — ≤ 767px
──────────────────────────────────────────────── */
@media (max-width: 767px) {

    .login-split {
        flex-direction: column;
    }

    .login-left {
        width: 100%;
        min-height: 0;
        padding: 1.2rem 1.5rem;
        justify-content: center;
    }

    #net-canvas,
    .login-left::before {
        display: none;
    }

    .brand-block {
        display: flex;
        align-items: center;
        gap: 0.875rem;
    }

    .brand-icon {
        margin-bottom: 0;
        flex-shrink: 0;
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .brand-name {
        font-size: 1rem;
        margin: 0;
    }

    .brand-by,
    .brand-tagline {
        display: none;
    }

    .login-right {
        flex: 1;
        padding: 2rem 1.5rem;
        align-items: flex-start;
    }

    .login-right::before {
        display: none;
    }

}
