:root {
    color-scheme: dark;
    --login-bg: #080d1a;
    --login-panel: #0c1425;
    --login-card: rgba(15, 24, 42, 0.76);
    --login-border: rgba(148, 163, 184, 0.16);
    --login-text: #f8fafc;
    --login-muted: #93a4bd;
    --login-blue: #3b82f6;
    --login-blue-bright: #60a5fa;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    min-height: 100%;
    background: var(--login-bg);
}

body.login-page {
    min-height: 100vh;
    margin: 0;
    color: var(--login-text);
    font-family: "Segoe UI", "SF Pro Text", Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(900px 600px at 10% 0%, rgba(37, 99, 235, 0.12), transparent 62%),
        radial-gradient(700px 500px at 100% 100%, rgba(14, 165, 233, 0.08), transparent 60%),
        var(--login-bg);
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
    gap: 18px;
    width: min(1440px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    padding: 20px;
}

.login-showcase {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 720px;
    overflow: hidden;
    padding: clamp(30px, 5vw, 68px);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(20, 39, 72, 0.94), rgba(11, 20, 38, 0.98) 62%),
        var(--login-panel);
    isolation: isolate;
}

.brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    color: var(--login-text);
    text-decoration: none;
}

.brand-mark,
.brand-mark svg {
    display: block;
    width: 42px;
    height: 42px;
}

.brand-mark {
    color: var(--login-blue);
    filter: drop-shadow(0 8px 18px rgba(37, 99, 235, 0.28));
}

.brand-name {
    font-size: 19px;
    font-weight: 750;
    letter-spacing: -0.035em;
}

.brand-name span {
    margin-left: 4px;
    color: #9eb4d3;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    vertical-align: 2px;
}

.showcase-copy {
    position: relative;
    z-index: 1;
    max-width: 570px;
    margin: 64px 0 76px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 18px;
    color: var(--login-blue-bright);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.17em;
}

.eyebrow-dot,
.secure-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #60a5fa;
    box-shadow: 0 0 14px rgba(96, 165, 250, 0.8);
}

.showcase-copy h1 {
    margin: 0;
    font-size: clamp(48px, 6vw, 78px);
    font-weight: 760;
    line-height: 1.02;
    letter-spacing: -0.065em;
}

.showcase-copy h1 span {
    color: #86b9ff;
}

.showcase-description {
    max-width: 440px;
    margin: 24px 0 30px;
    color: #a9b8ce;
    font-size: 16px;
    line-height: 1.75;
}

.feature-list {
    display: grid;
    gap: 13px;
    color: #d7e2f1;
    font-size: 13px;
    font-weight: 600;
}

.feature-list span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-check {
    display: inline-grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    font-size: 12px;
}

.showcase-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #8394ad;
    font-size: 11px;
}

.secure-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #bfcee2;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.11em;
}

.secure-dot {
    width: 6px;
    height: 6px;
    background: #34d399;
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.7);
}

.footer-divider {
    width: 1px;
    height: 16px;
    background: rgba(148, 163, 184, 0.22);
}

.ambient {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(96, 165, 250, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.ambient-one {
    top: 16%;
    right: -210px;
    width: 520px;
    height: 520px;
    box-shadow:
        0 0 0 34px rgba(96, 165, 250, 0.025),
        0 0 0 78px rgba(96, 165, 250, 0.02);
}

.ambient-two {
    right: 4%;
    bottom: 13%;
    width: 220px;
    height: 220px;
    border-color: rgba(14, 165, 233, 0.12);
    box-shadow: 0 0 90px rgba(37, 99, 235, 0.12);
}

.showcase-grid {
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: 0.16;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
    background-position: center;
    background-size: 44px 44px;
    mask-image: linear-gradient(125deg, transparent 15%, #000 100%);
}

.login-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 44px clamp(20px, 5vw, 76px);
}

.login-card {
    width: min(100%, 430px);
    padding: 42px 38px;
    border: 1px solid var(--login-border);
    border-radius: 24px;
    background: linear-gradient(150deg, rgba(18, 29, 49, 0.9), rgba(11, 18, 32, 0.92));
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
}

.mobile-brand {
    display: none;
}

.login-heading {
    margin-bottom: 32px;
}

.login-heading .eyebrow {
    margin-bottom: 13px;
    font-size: 10px;
}

.login-heading h2 {
    margin: 0;
    font-size: 31px;
    font-weight: 730;
    letter-spacing: -0.045em;
}

.login-heading > p:last-child {
    margin: 10px 0 0;
    color: var(--login-muted);
    font-size: 14px;
    line-height: 1.6;
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: -12px 0 22px;
    padding: 12px 13px;
    border: 1px solid rgba(248, 113, 113, 0.28);
    border-radius: 12px;
    background: rgba(127, 29, 29, 0.2);
    color: #fecaca;
    font-size: 13px;
    line-height: 1.5;
}

.login-alert svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin-top: 1px;
}

.login-form {
    display: grid;
    gap: 21px;
}

.form-field {
    display: grid;
    gap: 9px;
}

.form-field label {
    color: #dbe5f2;
    font-size: 13px;
    font-weight: 650;
}

.input-wrap {
    position: relative;
}

.input-wrap > svg {
    position: absolute;
    top: 50%;
    left: 15px;
    width: 20px;
    height: 20px;
    color: #7487a2;
    transform: translateY(-50%);
    pointer-events: none;
}

.input-wrap input {
    width: 100%;
    height: 52px;
    padding: 0 15px 0 46px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    outline: none;
    background: rgba(5, 11, 22, 0.62);
    color: var(--login-text);
    font: inherit;
    font-size: 14px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.input-wrap input::placeholder {
    color: #60718a;
}

.input-wrap input:hover {
    border-color: rgba(148, 163, 184, 0.36);
}

.input-wrap input:focus {
    border-color: var(--login-blue);
    background: rgba(5, 11, 22, 0.9);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    margin-top: 5px;
    padding: 0 18px;
    border: 1px solid rgba(147, 197, 253, 0.28);
    border-radius: 12px;
    background: linear-gradient(110deg, #2563eb, #397ff0 58%, #278edb);
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.25);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.submit-button svg {
    width: 18px;
    height: 18px;
    transition: transform 0.18s ease;
}

.submit-button:hover {
    filter: brightness(1.08);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.34);
    transform: translateY(-1px);
}

.submit-button:hover svg {
    transform: translateX(3px);
}

.submit-button:focus-visible {
    outline: 3px solid rgba(147, 197, 253, 0.7);
    outline-offset: 3px;
}

.login-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 26px;
    color: #8293ac;
    font-size: 11px;
}

.login-security svg {
    width: 17px;
    height: 17px;
    color: #60a5fa;
}

.login-footer {
    margin-top: 30px;
    color: #667790;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 900px) {
    .login-shell {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
        gap: 12px;
        padding: 12px;
    }

    .login-showcase {
        min-height: 680px;
        padding: 34px;
    }

    .login-panel {
        padding: 30px 18px;
    }

    .login-card {
        padding: 34px 28px;
    }
}

@media (max-width: 700px) {
    .login-shell {
        display: flex;
        min-height: 100svh;
        flex-direction: column;
        justify-content: center;
        width: min(520px, 100%);
        padding: 22px;
    }

    .login-showcase {
        display: none;
    }

    .login-panel {
        padding: 0;
    }

    .login-card {
        padding: 30px 24px;
    }

    .mobile-brand {
        display: inline-flex;
        margin-bottom: 38px;
    }

    .login-heading h2 {
        font-size: 28px;
    }
}

@media (max-width: 380px) {
    .login-shell {
        padding: 14px;
    }

    .login-card {
        padding: 26px 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
