:root {
    --auth-bg: #f3f6fb;
    --auth-ink: #24163a;
    --auth-muted: #6a6180;
    --auth-border: #ddd3f0;
    --auth-brand-1: #3b0073;
    --auth-brand-2: #2a0053;
    --auth-accent: #950dd3;
    --auth-accent-2: #6a0dad;
    --auth-danger: #af2f43;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Poppins, sans-serif;
    color: var(--auth-ink);
    background:
        radial-gradient(800px 420px at 12% 0%, rgba(149, 13, 211, 0.14), transparent 60%),
        radial-gradient(900px 520px at 88% 100%, rgba(106, 13, 173, 0.12), transparent 64%),
        linear-gradient(160deg, #f7f4ff 0%, #f2ecff 45%, #faf7ff 100%);
}

.auth-shell {
    padding: 96px 22px 64px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.auth-card {
    width: min(1060px, 100%);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(203, 215, 229, 0.8);
    border-radius: 24px;
    box-shadow: 0 26px 48px rgba(19, 34, 58, 0.16);
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(340px, 1fr) minmax(360px, 1fr);
    backdrop-filter: blur(6px);
}

.auth-card--single {
    max-width: 560px;
    grid-template-columns: 1fr;
}

.auth-shell--reset {
    padding-top: 104px;
}

.auth-card--reset {
    max-width: 500px;
    border-radius: 22px;
    border-color: rgba(184, 161, 236, 0.55);
    box-shadow: 0 24px 44px rgba(46, 13, 82, 0.2);
    overflow: hidden;
}

.auth-reset-top {
    padding: 18px 22px 16px;
    background:
        radial-gradient(200px 90px at 10% 0%, rgba(235, 188, 255, 0.3), transparent 70%),
        linear-gradient(135deg, #2f0a58 0%, #4f128d 100%);
    color: #f8f3ff;
}

.auth-reset-top h1 {
    margin: 6px 0 4px;
    font-family: Raleway, sans-serif;
    font-size: 24px;
    line-height: 1.2;
}

.auth-reset-top p {
    margin: 0;
    font-size: 14px;
    opacity: 0.94;
}

.auth-step {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.14);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 700;
}

.auth-panel--reset {
    align-items: stretch;
    padding: 30px 30px 28px;
    gap: 14px;
}

.auth-panel--reset .auth-logo {
    justify-content: flex-start;
}

.auth-panel--reset .auth-logo img {
    width: 108px;
}

.auth-panel--reset h2 {
    font-size: 25px;
}

.auth-panel--reset .auth-subtitle {
    line-height: 1.55;
}

.auth-panel--reset .auth-form {
    max-width: 100%;
    margin: 4px 0 0;
}

.auth-note {
    margin: 0;
    font-size: 13px;
    color: var(--auth-muted);
    line-height: 1.5;
}

.auth-links-single.auth-links-left {
    justify-content: flex-start;
    margin-top: 8px;
}

.auth-panel {
    padding: 50px 46px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-panel--brand {
    color: #f6fbff;
    background:
        radial-gradient(420px 220px at 5% 10%, rgba(205, 107, 255, 0.2), transparent 68%),
        radial-gradient(340px 180px at 85% 15%, rgba(149, 13, 211, 0.2), transparent 70%),
        linear-gradient(160deg, var(--auth-brand-1) 0%, var(--auth-brand-2) 58%, #240044 100%);
    position: relative;
}

.auth-panel--brand::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -60px;
    bottom: -80px;
    border-radius: 999px;
    background: radial-gradient(circle at 35% 35%, rgba(214, 148, 255, 0.35), rgba(214, 148, 255, 0));
    pointer-events: none;
}

.auth-panel--brand > * {
    position: relative;
    z-index: 1;
}

.auth-panel--brand h1 {
    margin: 4px 0;
    font-family: Raleway, sans-serif;
    font-size: clamp(30px, 3vw, 38px);
    line-height: 1.16;
    letter-spacing: 0.2px;
}

.auth-panel--form {
    background: #ffffff;
    align-items: center;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #f6fbff;
    font-weight: 600;
    letter-spacing: 0.45px;
    text-transform: uppercase;
    font-size: 11px;
}

.auth-lead {
    margin: 4px 0 0;
    line-height: 1.68;
    opacity: 0.94;
    max-width: 44ch;
}

.auth-highlights {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.auth-highlights li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    opacity: 0.98;
}

.auth-highlights li::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: linear-gradient(140deg, #c56af8 0%, #de8dff 100%);
    box-shadow: 0 0 0 4px rgba(197, 106, 248, 0.18);
    flex-shrink: 0;
}

.auth-logo {
    width: 100%;
    display: flex;
    justify-content: center;
}

.auth-logo img {
    width: 132px;
}

.auth-panel--form h2 {
    margin: 0;
    color: #2f0a58;
    font-size: 28px;
    font-family: Raleway, sans-serif;
    letter-spacing: 0.2px;
}

.auth-subtitle {
    margin: 0;
    color: var(--auth-muted);
}

.auth-form {
    margin-top: 8px;
    width: 100%;
    max-width: 352px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.auth-form p {
    margin: 0 0 14px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
}

.auth-form label {
    font-weight: 600;
    color: #36225c;
    font-size: 14px;
}

.auth-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    font-size: 15px;
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.15s;
    background: #fdfefe;
    box-sizing: border-box;
}

.auth-form > input {
    margin-bottom: 12px;
}

.auth-form input::placeholder {
    color: #8f9aab;
}

.auth-form input:focus {
    outline: none;
    border-color: #9a43d5;
    box-shadow: 0 0 0 4px rgba(154, 67, 213, 0.16);
    transform: translateY(-1px);
}

.auth-submit {
    width: 100%;
    margin-top: 10px;
    background: linear-gradient(135deg, var(--auth-accent) 0%, var(--auth-accent-2) 100%);
    color: #f8fdff;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.18s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(106, 13, 173, 0.26);
}

.auth-submit:active {
    transform: translateY(0);
    box-shadow: none;
}

.auth-links {
    width: 100%;
    max-width: 440px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    margin-top: 10px;
}

.auth-links-single {
    justify-content: center;
}

.register-link,
.password-link {
    color: #6a0dad;
    text-decoration: none;
    font-weight: 600;
}

.register-link:hover,
.password-link:hover {
    text-decoration: underline;
}

.auth-message,
.auth-form ul.errorlist {
    width: 100%;
    max-width: 440px;
    color: var(--auth-danger);
    background: #fff5f6;
    border: 1px solid #f1c7cf;
    border-radius: 10px;
    padding: 10px 12px;
    margin: 0 0 10px;
    box-sizing: border-box;
    list-style: none;
}

.auth-form ul.errorlist {
    margin-top: 0;
}

.terms-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 2px 0 6px;
    line-height: 1.45;
    color: #433266;
}

.terms-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    accent-color: #7c2dbd;
}

.terms-row a {
    color: #6a0dad;
}

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

    .auth-panel--brand {
        padding-bottom: 40px;
    }

    .auth-panel--form {
        padding-top: 36px;
    }

    .auth-links {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .auth-shell {
        padding-top: 84px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .auth-card {
        border-radius: 18px;
    }

    .auth-panel {
        padding: 30px 20px;
    }

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

    .auth-panel--form h2 {
        font-size: 24px;
    }

    .auth-logo img {
        width: 112px;
    }

    .auth-shell--reset {
        padding-top: 88px;
    }

    .auth-panel--reset {
        padding: 24px 18px 22px;
    }

    .auth-reset-top {
        padding: 16px 18px 14px;
    }
}
