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

:root {
    color-scheme: dark;
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
    color: #e3dfe8;
    background: #08070b;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    padding: clamp(16px, 4vh, 46px) 24px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(ellipse at 10% 15%, rgba(92, 63, 120, 0.16), transparent 35%),
        radial-gradient(ellipse at 92% 90%, rgba(101, 73, 142, 0.08), transparent 32%),
        #08070b;
}

body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background-image: linear-gradient(rgba(209, 190, 230, 0.018) 1px, transparent 1px), linear-gradient(90deg, rgba(209, 190, 230, 0.018) 1px, transparent 1px);
    background-size: 46px 46px;
    content: '';
    mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    width: min(1100px, 100%);
    min-height: min(760px, calc(100vh - 92px));
    overflow: hidden;
    border: 1px solid rgba(199, 180, 219, 0.12);
    border-radius: 24px;
    background: #110f16;
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.58), 0 0 0 8px rgba(211, 190, 230, 0.018);
}

.auth-showcase {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 660px;
    flex-direction: column;
    overflow: hidden;
    padding: 42px 48px 30px;
    color: #f1edf4;
    background:
        radial-gradient(ellipse at 84% 79%, rgba(126, 92, 160, 0.12), transparent 37%),
        radial-gradient(ellipse at 4% 104%, rgba(60, 41, 78, 0.28), transparent 42%),
        linear-gradient(145deg, #191522 0%, #100e15 54%, #0c0b10 100%);
}

.auth-showcase::before,
.auth-showcase::after {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(211, 194, 228, 0.055);
    border-radius: 50%;
    content: '';
}

.auth-showcase::before {
    width: 520px;
    height: 520px;
    right: -310px;
    top: -230px;
}

.auth-showcase::after {
    width: 390px;
    height: 390px;
    right: -250px;
    top: -165px;
}

.brand {
    position: relative;
    z-index: 2;
    width: fit-content;
    color: #eeeaf2;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
    text-decoration: none;
}

.brand span {
    color: #a38bbb;
}

.showcase-copy {
    position: relative;
    z-index: 2;
    max-width: 390px;
    margin: auto 0 145px;
}

.eyebrow,
.form-kicker {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #a097ac;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.55px;
}

.eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #9a80b6;
    box-shadow: 0 0 12px rgba(154, 128, 182, 0.34);
}

.showcase-copy h1 {
    margin: 20px 0 13px;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    font-size: clamp(43px, 5.2vw, 65px);
    font-weight: 600;
    letter-spacing: -3.8px;
    line-height: 1.04;
}

.showcase-copy h1 em {
    color: #a893c4;
    font-style: normal;
}

.showcase-copy p {
    max-width: 320px;
    margin: 0;
    color: #c0b8c8;
    font-size: 14px;
    line-height: 1.7;
}

.orbit-art {
    position: absolute;
    right: 24px;
    bottom: 76px;
    width: 250px;
    height: 250px;
    opacity: 0.86;
}

.orbit {
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(207, 194, 222, 0.15);
    border-radius: 50%;
}

.orbit-one {
    transform: rotate(-28deg) scaleY(0.42);
}

.orbit-two {
    transform: rotate(54deg) scaleY(0.56);
}

.orbit-core {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 92px;
    height: 92px;
    place-items: center;
    border: 1px solid rgba(164, 139, 191, 0.34);
    border-radius: 28px;
    color: #e4dce9;
    background: linear-gradient(145deg, #2c2435, #1b1722);
    box-shadow: 0 0 46px rgba(128, 91, 160, 0.12), inset 0 1px rgba(234, 226, 241, 0.08);
    transform: translate(-50%, -50%) rotate(-11deg);
}

.orbit-core span {
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -5px;
    transform: rotate(11deg);
}

.orbit-star {
    position: absolute;
    color: #ad98c8;
    text-shadow: 0 0 14px rgba(173, 152, 200, 0.28);
}

.star-one {
    top: 27px;
    right: 42px;
    font-size: 20px;
}

.star-two {
    bottom: 40px;
    left: 29px;
    font-size: 15px;
}

.showcase-footer,
.panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.1px;
}

.showcase-footer {
    position: relative;
    z-index: 2;
    color: #857a8d;
}

.footer-line {
    height: 1px;
    flex: 1;
    background: rgba(207, 190, 221, 0.15);
}

.auth-form-panel {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: space-between;
    padding: 52px clamp(40px, 6.5vw, 82px) 30px;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(107, 83, 131, 0.09), transparent 40%),
        #131119;
}

.form-wrap {
    width: 100%;
    max-width: 390px;
    margin: auto;
}

.form-kicker {
    color: #958b9e;
    font-size: 10px;
}

.form-wrap h2 {
    margin: 15px 0 8px;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    font-size: clamp(30px, 3.5vw, 40px);
    font-weight: 700;
    letter-spacing: -1.9px;
    line-height: 1.15;
}

.form-intro {
    margin: 0 0 32px;
    color: #928a98;
    font-size: 14px;
    line-height: 1.6;
}

.auth-form {
    display: grid;
    gap: 20px;
}

.field-block {
    display: grid;
    gap: 8px;
}

.field-block label {
    color: #c7becd;
    font-size: 12px;
    font-weight: 700;
}

.field-block input {
    width: 100%;
    min-height: 52px;
    padding: 0 15px;
    border: 1px solid #332d3b;
    border-radius: 10px;
    outline: none;
    color: #e8e2ec;
    background: #19161e;
    font: inherit;
    font-size: 14px;
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.field-block input::placeholder {
    color: #83798a;
}

.field-block input:focus {
    border-color: #8872a2;
    background: #1c1822;
    box-shadow: 0 0 0 4px rgba(136, 114, 162, 0.12);
}

.submit-button {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    margin-top: 5px;
    padding: 0 18px 0 20px;
    border: 0;
    border-radius: 10px;
    color: #130f18;
    background: #9b87b2;
    box-shadow: 0 8px 20px rgba(126, 99, 153, 0.14);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.submit-button span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 8px;
    background: rgba(19, 15, 24, 0.1);
    font-size: 18px;
}

.submit-button:hover {
    background: #ac99c0;
    box-shadow: 0 11px 25px rgba(126, 99, 153, 0.2);
    transform: translateY(-1px);
}

.submit-button:focus-visible,
.form-switch a:focus-visible,
.brand:focus-visible {
    outline: 3px solid #a38bbb;
    outline-offset: 4px;
}

.form-switch {
    margin: 25px 0 0;
    color: #958b9e;
    font-size: 13px;
    line-height: 1.6;
}

.form-switch a {
    margin-left: 3px;
    color: #c2add7;
    font-weight: 700;
    text-decoration: none;
}

.form-switch a:hover {
    color: #d1bee0;
}

.form-switch a span {
    margin-left: 2px;
}

.form-alert {
    margin: -10px 0 22px;
    padding: 12px 14px;
    border: 1px solid #52302d;
    border-radius: 9px;
    color: #e3a49b;
    background: #241614;
    font-size: 13px;
    line-height: 1.5;
}

.panel-footer {
    color: #766d7c;
}

.mobile-brand {
    display: none;
}

@media (max-width: 900px) {
    body {
        padding-inline: 18px;
    }

    .auth-layout {
        grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    }

    .auth-showcase {
        padding-inline: 34px;
    }

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

    .orbit-art {
        right: -38px;
        transform: scale(0.86);
        transform-origin: bottom right;
    }
}

@media (max-width: 680px) {
    body {
        display: block;
        padding: 14px;
    }

    .auth-layout {
        display: flex;
        min-height: 0;
        flex-direction: column;
        border-radius: 19px;
    }

    .auth-showcase {
        min-height: 260px;
        padding: 25px 26px 20px;
    }

    .auth-showcase > .brand {
        display: none;
    }

    .mobile-brand {
        display: block;
        margin-bottom: 30px;
    }

    .mobile-brand .brand {
        color: #eeeaf2;
        font-size: 27px;
    }

    .mobile-brand .brand span {
        color: #a38bbb;
    }

    .showcase-copy {
        max-width: 72%;
        margin: auto 0 0;
    }

    .showcase-copy h1 {
        margin: 13px 0 8px;
        font-size: clamp(36px, 10vw, 50px);
        letter-spacing: -2.6px;
    }

    .showcase-copy p {
        font-size: 12px;
    }

    .eyebrow {
        font-size: 8px;
        letter-spacing: 1.1px;
    }

    .orbit-art {
        right: -50px;
        bottom: 5px;
        width: 190px;
        height: 190px;
        opacity: 0.53;
        transform: none;
    }

    .orbit-core {
        width: 68px;
        height: 68px;
        border-radius: 21px;
    }

    .orbit-core span {
        font-size: 34px;
    }

    .showcase-footer {
        margin-top: 22px;
        font-size: 8px;
    }

    .auth-form-panel {
        min-height: 540px;
        padding: 30px 27px 23px;
    }

    .form-wrap {
        margin: 0 auto 32px;
    }

    .form-wrap h2 {
        font-size: 34px;
    }

    .form-intro {
        margin-bottom: 26px;
    }

    .panel-footer {
        font-size: 8px;
    }
}

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