:root {
    --login-ink: #06101c;
    --login-panel: #0b1727;
    --login-accent: #78e7ef;
    --login-lime: #c7f476;
    --login-violet: #7563ff;
    --login-paper: #f7f6f1;
    --font-body: "Manrope", "Segoe UI", sans-serif;
    --font-display: "Space Grotesk", "Manrope", sans-serif;
}

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

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #172337;
    background: #07111f;
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.auth-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.auth-page::before,
.auth-page::after {
    position: fixed;
    z-index: 0;
    content: "";
    pointer-events: none;
    border-radius: 50%;
    filter: blur(110px);
}

.auth-page::before {
    top: -180px;
    left: 18%;
    width: 430px;
    height: 430px;
    background: rgba(117, 99, 255, 0.35);
}

.auth-page::after {
    right: -160px;
    bottom: -180px;
    width: 460px;
    height: 460px;
    background: rgba(120, 231, 239, 0.24);
}

.auth-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(430px, 0.82fr) minmax(520px, 1.18fr);
    min-height: 100vh;
}

.auth-form-panel {
    display: grid;
    place-items: center;
    padding: 48px;
    background:
        radial-gradient(
            circle at 20% 10%,
            rgba(117, 99, 255, 0.07),
            transparent 30%
        ),
        var(--login-paper);
}

.auth-card {
    width: min(100%, 460px);
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 48px;
}

.auth-brand-mark {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: linear-gradient(145deg, #7563ff, #4bd4df);
    box-shadow: 0 16px 35px rgba(117, 99, 255, 0.25);
    transform: rotate(-3deg);
}

.auth-brand-sheet {
    position: absolute;
    inset: 10px 13px;
    border: 1.5px solid rgba(255, 255, 255, 0.95);
    border-radius: 5px;
}

.auth-brand-sheet::before,
.auth-brand-sheet::after {
    position: absolute;
    left: 4px;
    right: 4px;
    height: 1px;
    content: "";
    background: rgba(255, 255, 255, 0.75);
}

.auth-brand-sheet::before {
    top: 7px;
}
.auth-brand-sheet::after {
    top: 13px;
}

.auth-brand-beam {
    position: absolute;
    left: 7px;
    right: 7px;
    top: 24px;
    height: 2px;
    background: #d8ff91;
    box-shadow: 0 0 10px #d8ff91;
    animation: loginScan 2.8s ease-in-out infinite;
}

.auth-brand-copy strong,
.auth-brand-copy small {
    display: block;
}

.auth-brand-copy strong {
    color: #07111f;
    font-family: var(--font-display);
    font-size: 21px;
    letter-spacing: -0.05em;
}

.auth-brand-copy strong span {
    color: #6654f3;
}

.auth-brand-copy small {
    margin-top: 5px;
    color: #78869a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6654f3;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.auth-eyebrow::before {
    width: 18px;
    height: 1px;
    content: "";
    background: currentColor;
}

.auth-card h1 {
    margin: 13px 0 0;
    color: #07111f;
    font-family: var(--font-display);
    font-size: clamp(38px, 5vw, 58px);
    line-height: 0.96;
    letter-spacing: -0.065em;
}

.auth-card > p {
    max-width: 420px;
    margin: 18px 0 0;
    color: #68768a;
    font-size: 11px;
    line-height: 1.7;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 34px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.auth-field label {
    color: #59677a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.auth-input-shell {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 18px;
    height: 18px;
    color: #8e9aac;
    transform: translateY(-50%);
    pointer-events: none;
}

.auth-input-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-input {
    width: 100%;
    height: 50px;
    padding: 0 14px 0 43px;
    color: #0e1b2d;
    outline: 0;
    border: 1px solid #d8dee7;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    font-size: 11px;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.auth-input:focus {
    border-color: rgba(117, 99, 255, 0.58);
    background: #fff;
    box-shadow:
        0 0 0 4px rgba(117, 99, 255, 0.09),
        0 10px 24px rgba(7, 17, 31, 0.05);
}

.auth-error {
    color: #c53e5b;
    font-size: 12px;
    font-weight: 700;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 2px;
    color: #7d899a;
    font-size: 12px;
}

.remember-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.remember-label input {
    width: 15px;
    height: 15px;
    accent-color: #6654f3;
}

.auth-submit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 0 18px;
    overflow: hidden;
    color: #fff;
    cursor: pointer;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #7563ff, #5847eb);
    box-shadow: 0 16px 35px rgba(117, 99, 255, 0.24);
    font-size: 12px;
    font-weight: 800;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.auth-submit::before {
    position: absolute;
    top: -120%;
    left: -30%;
    width: 28%;
    height: 340%;
    content: "";
    background: rgba(255, 255, 255, 0.22);
    transform: rotate(24deg);
    transition: left 0.5s ease;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(117, 99, 255, 0.3);
}

.auth-submit:hover::before {
    left: 120%;
}

.auth-submit span {
    position: relative;
    z-index: 1;
}

.auth-security {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    color: #7c899a;
    border-top: 1px solid #e0e4eb;
    font-size: 12px;
    line-height: 1.6;
}

.auth-security svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #6654f3;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-visual-panel {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 60px;
    color: #f6f9ff;
    background:
        radial-gradient(
            circle at 78% 14%,
            rgba(120, 231, 239, 0.24),
            transparent 27%
        ),
        radial-gradient(
            circle at 22% 8%,
            rgba(117, 99, 255, 0.33),
            transparent 30%
        ),
        linear-gradient(145deg, #11243b, #07111f 68%);
}

.auth-visual-panel::before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(to left, black, transparent 90%);
}

.auth-visual-content {
    position: relative;
    z-index: 2;
    width: min(100%, 760px);
    margin: 0 auto;
}

.auth-visual-kicker {
    color: #86e9ef;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.auth-visual-content h2 {
    max-width: 720px;
    margin: 16px 0 0;
    font-family: var(--font-display);
    font-size: clamp(46px, 6vw, 82px);
    line-height: 0.92;
    letter-spacing: -0.07em;
}

.auth-visual-content h2 span {
    color: #c7f476;
}

.auth-visual-content > p {
    max-width: 660px;
    margin: 23px 0 0;
    color: #9aadc4;
    font-size: 12px;
    line-height: 1.75;
}

.auth-pipeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 42px;
}

.auth-stage {
    position: relative;
    min-height: 145px;
    padding: 17px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
}

.auth-stage::after {
    position: absolute;
    right: -30px;
    bottom: -35px;
    width: 80px;
    height: 80px;
    content: "";
    border-radius: 50%;
    background: rgba(120, 231, 239, 0.08);
}

.auth-stage b,
.auth-stage strong,
.auth-stage small {
    position: relative;
    z-index: 1;
    display: block;
}

.auth-stage b {
    color: #7de4eb;
    font-family: var(--font-display);
    font-size: 12px;
}

.auth-stage strong {
    margin-top: 40px;
    font-size: 11px;
}

.auth-stage small {
    margin-top: 5px;
    color: #6f849c;
    font-size: 12px;
}

.auth-document-visual {
    position: absolute;
    right: -95px;
    bottom: -145px;
    width: 360px;
    height: 470px;
    opacity: 0.16;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 25px;
    transform: rotate(-12deg);
}

.auth-document-visual::before {
    position: absolute;
    inset: 50px 50px auto;
    height: 1px;
    content: "";
    background: rgba(255, 255, 255, 0.65);
    box-shadow:
        0 34px 0 rgba(255, 255, 255, 0.45),
        0 68px 0 rgba(255, 255, 255, 0.32),
        0 102px 0 rgba(255, 255, 255, 0.25),
        0 170px 0 rgba(255, 255, 255, 0.18);
}

.auth-document-visual::after {
    position: absolute;
    left: 30px;
    right: 30px;
    top: 205px;
    height: 3px;
    content: "";
    background: #c7f476;
    box-shadow: 0 0 14px #c7f476;
    animation: documentSweep 3.8s ease-in-out infinite;
}

@keyframes loginScan {
    0%,
    100% {
        transform: translateY(-10px);
        opacity: 0.45;
    }
    50% {
        transform: translateY(10px);
        opacity: 1;
    }
}

@keyframes documentSweep {
    0%,
    100% {
        transform: translateY(-110px);
        opacity: 0.3;
    }
    50% {
        transform: translateY(120px);
        opacity: 1;
    }
}

@media (max-width: 1050px) {
    .auth-shell {
        grid-template-columns: minmax(390px, 0.9fr) minmax(450px, 1.1fr);
    }

    .auth-form-panel,
    .auth-visual-panel {
        padding: 38px;
    }

    .auth-pipeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-form-panel {
        min-height: 100vh;
        padding: 35px 22px;
    }

    .auth-visual-panel {
        display: none;
    }

    .auth-brand {
        margin-bottom: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
