@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #090c10;
    --panel: #0f141b;
    --panel-2: #0c1117;
    --line: #1e2631;
    --text: #dbe4ef;
    --muted: #9aabc2;
    --brand: #7c5cff;
    --brand-2: #2ee6a6;
    --brand-3: #a28bff;
    --danger: #ff6b7a;
    --success: #2ee6a6;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --radius-lg: 28px;
    --maxw: 1040px;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: Inter, system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
}

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

.auth-page {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px 18px;
    overflow: hidden;
    isolation: isolate;
}

.auth-gridlines {
    position: absolute;
    inset: -20% -10% -10% -10%;
    z-index: -4;
    opacity: .34;
    background:
        repeating-linear-gradient(115deg, rgba(124, 92, 255, .06) 0 2px, transparent 2px 12px),
        radial-gradient(760px 380px at 18% -10%, rgba(124, 92, 255, .2), transparent 60%),
        radial-gradient(560px 280px at 105% 0%, rgba(46, 230, 166, .18), transparent 60%);
    animation: gridshift 18s linear infinite;
}

@keyframes gridshift {
    0% {
        background-position: 0 0, 0 0, 0 0;
    }

    100% {
        background-position: 600px -400px, 0 0, 0 0;
    }
}

.auth-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(30px);
    opacity: .45;
    pointer-events: none;
    z-index: -3;
}

.auth-glow-one {
    width: 440px;
    height: 440px;
    left: -150px;
    top: 4%;
    background: radial-gradient(circle, rgba(124, 92, 255, .32), transparent 68%);
}

.auth-glow-two {
    width: 400px;
    height: 400px;
    right: -140px;
    bottom: 0;
    background: radial-gradient(circle, rgba(46, 230, 166, .22), transparent 68%);
}

.auth-shell {
    width: 100%;
    max-width: var(--maxw);
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    min-height: 565px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025));
    box-shadow: var(--shadow);
    overflow: hidden;
    backdrop-filter: blur(14px);
}

.auth-brand-panel,
.auth-form-panel {
    position: relative;
    padding: 34px;
}

.auth-brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    background:
        radial-gradient(720px 420px at 14% 0%, rgba(124, 92, 255, .22), transparent 60%),
        radial-gradient(560px 420px at 88% 92%, rgba(46, 230, 166, .13), transparent 64%),
        linear-gradient(180deg, rgba(15, 20, 27, .86), rgba(12, 17, 23, .92));
    border-right: 1px solid rgba(255, 255, 255, .08);
    overflow: hidden;
}

.auth-brand-panel::before {
    content: "";
    position: absolute;
    inset: -1px;
    background:
        linear-gradient(135deg, rgba(124, 92, 255, .2), transparent 38%),
        linear-gradient(315deg, rgba(46, 230, 166, .12), transparent 42%);
    pointer-events: none;
}

.icon-orbit,
.auth-copy,
.auth-benefits {
    position: relative;
    z-index: 2;
}

.icon-orbit {
    display: grid;
    place-items: center;
}

.icon-ring {
    position: relative;
    width: 190px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02) 55%, transparent 56%),
        conic-gradient(from 0deg, rgba(124, 92, 255, 0), rgba(124, 92, 255, .52), rgba(46, 230, 166, .45), rgba(124, 92, 255, 0));
    border: 1px solid rgba(255, 255, 255, .09);
    box-shadow:
        inset 0 0 42px rgba(124, 92, 255, .18),
        0 0 48px rgba(46, 230, 166, .12);
}

.icon-ring::before {
    content: "";
    position: absolute;
    inset: 9%;
    border-radius: 50%;
    border: 1px dashed rgba(207, 225, 255, .24);
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: .65;
    }

    50% {
        transform: scale(1.045);
        opacity: 1;
    }
}

.icon-ring-dash {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0 70%, rgba(255, 255, 255, .85) 74% 76%, transparent 80% 100%);
    mask: radial-gradient(circle at 50% 50%, transparent 62%, #000 63%);
    -webkit-mask: radial-gradient(circle at 50% 50%, transparent 62%, #000 63%);
    animation: dashspin 1.8s linear infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, .25));
}

@keyframes dashspin {
    to {
        transform: rotate(360deg);
    }
}

.logo-icon-card {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05));
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow:
        0 18px 42px rgba(0, 0, 0, .28),
        0 0 28px rgba(124, 92, 255, .32);
    overflow: hidden;
}

.logo-icon-card img {
    width: 58px;
    height: 58px;
    display: block;
    object-fit: contain;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 7px;
    color: var(--brand-2);
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .74rem;
}

.auth-copy h1 {
    margin: 0 0 10px;
    font-size: clamp(1.75rem, 3vw, 2.55rem);
    line-height: 1.06;
    letter-spacing: -.04em;
}

.auth-copy p {
    margin: 0;
    color: #b8c8e4;
    font-size: .97rem;
}

.auth-benefits {
    display: grid;
    gap: 10px;
}

.benefit-card {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025));
    border: 1px solid rgba(255, 255, 255, .08);
}

.benefit-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #081018;
    font-weight: 900;
    background: radial-gradient(circle at 30% 30%, #fff, #cde6ff 60%, #9b87ff 100%);
    box-shadow: 0 8px 22px rgba(124, 92, 255, .3);
}

.benefit-card strong {
    display: block;
    line-height: 1.2;
    font-size: .95rem;
}

.benefit-card small {
    display: block;
    margin-top: 1px;
    color: #9fb1cd;
    font-size: .82rem;
}

.auth-form-panel {
    display: grid;
    place-items: center;
    background:
        radial-gradient(520px 360px at 70% 12%, rgba(124, 92, 255, .11), transparent 68%),
        linear-gradient(180deg, rgba(9, 12, 16, .55), rgba(9, 12, 16, .78));
}

.login-card {
    width: 100%;
    max-width: 420px;
    border-radius: var(--radius-lg);
    padding: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .03));
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.login-card-head {
    margin-bottom: 18px;
}

.login-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    color: #081018;
    background: #9ff0cf;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.login-card h2 {
    margin: 10px 0 5px;
    font-size: clamp(1.6rem, 2.6vw, 2.05rem);
    line-height: 1.1;
    letter-spacing: -.03em;
}

.login-card-head p {
    margin: 0;
    color: var(--muted);
    font-size: .94rem;
}

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

.input-group {
    display: grid;
    gap: 7px;
}

.input-group label {
    color: #cfe1ff;
    font-weight: 700;
    font-size: .88rem;
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand-2);
    font-size: .88rem;
    opacity: .9;
    pointer-events: none;
}

.input-wrap input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px 12px 40px;
    border-radius: 15px;
    color: var(--text);
    background: rgba(12, 17, 23, .86);
    border: 1px solid rgba(255, 255, 255, .1);
    outline: none;
    font: inherit;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.input-wrap input::placeholder {
    color: rgba(154, 171, 194, .68);
}

.input-wrap input:focus {
    border-color: rgba(124, 92, 255, .72);
    background: rgba(15, 20, 27, .96);
    box-shadow:
        0 0 0 4px rgba(124, 92, 255, .14),
        0 8px 24px rgba(124, 92, 255, .13);
}

.options {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 0;
}

.options a {
    color: #cfe1ff;
    font-weight: 700;
    font-size: .88rem;
    transition: color .2s ease, transform .2s ease;
}

.options a:hover {
    color: var(--brand-2);
    transform: translateY(-1px);
}

.login-button {
    width: 100%;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 2px;
    padding: 12px 18px;
    border: 1px solid rgba(124, 92, 255, .36);
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(180deg, #9a86ff, #6b50ff);
    box-shadow: 0 8px 22px rgba(124, 92, 255, .34);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, filter .2s ease, box-shadow .2s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    filter: saturate(1.14);
    box-shadow: 0 12px 30px rgba(124, 92, 255, .44);
}

.login-button:active {
    transform: translateY(0) scale(.99);
}

.login-button span {
    font-size: 1.1rem;
}

.login-foot {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px dashed rgba(255, 255, 255, .12);
}

.login-foot span {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    margin-top: 8px;
    border-radius: 50%;
    background: var(--brand-2);
    box-shadow: 0 0 16px rgba(46, 230, 166, .7);
}

.login-foot p {
    margin: 0;
    color: #9fb1cd;
    font-size: .86rem;
}

.alert {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0 0 14px;
    padding: 11px 40px 11px 13px;
    border-radius: 15px;
    font-size: .88rem;
    border: 1px solid rgba(255, 255, 255, .1);
}

.alert-success {
    background: rgba(46, 230, 166, .1);
    border-color: rgba(46, 230, 166, .28);
    color: #dffdf2;
}

.alert-error {
    background: rgba(255, 107, 122, .1);
    border-color: rgba(255, 107, 122, .3);
    color: #ffe4e8;
}

.alert-icon {
    flex: 0 0 auto;
    font-weight: 900;
}

.alert-success .alert-icon {
    color: var(--success);
}

.alert-error .alert-icon {
    color: var(--danger);
}

.alert-message {
    flex: 1 1 auto;
}

.alert-close {
    position: absolute;
    top: 7px;
    right: 9px;
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    color: currentColor;
    background: rgba(255, 255, 255, .06);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
}

.alert-close:hover {
    background: rgba(255, 255, 255, .12);
}

@media (max-width: 980px) {
    .auth-page {
        padding: 18px 14px;
        align-items: start;
    }

    .auth-shell {
        grid-template-columns: 1fr;
        min-height: auto;
        max-width: 620px;
    }

    .auth-brand-panel {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        gap: 18px;
    }

    .icon-ring {
        width: 160px;
    }

    .logo-icon-card {
        width: 76px;
        height: 76px;
        border-radius: 22px;
    }

    .logo-icon-card img {
        width: 50px;
        height: 50px;
    }

    .auth-benefits {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .auth-page {
        padding: 12px;
    }

    .auth-shell {
        border-radius: 24px;
    }

    .auth-brand-panel,
    .auth-form-panel {
        padding: 20px;
    }

    .login-card {
        padding: 22px;
        border-radius: 22px;
    }

    .icon-ring {
        width: 135px;
    }

    .logo-icon-card {
        width: 66px;
        height: 66px;
        border-radius: 19px;
    }

    .logo-icon-card img {
        width: 44px;
        height: 44px;
    }

    .auth-copy h1 {
        font-size: 1.75rem;
    }

    .auth-copy p {
        font-size: .91rem;
    }

    .options {
        flex-direction: column;
        gap: 7px;
    }
}