@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;
    --warning: #ffd166;
    --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.5;
}

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

button,
input,
select {
    font: inherit;
}

.register-page {
    position: relative;
    min-height: 100vh;
    padding: 22px 18px 34px;
    overflow: hidden;
    isolation: isolate;
}

.register-gridlines {
    position: fixed;
    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;
    }
}

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

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

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

.register-shell {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

.register-top {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 18px;
    padding: 10px 4px 0;
}

.logo-orbit {
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    transition: transform .18s ease, filter .2s ease;
}

.logo-orbit:hover {
    transform: translateY(-2px);
    filter: saturate(1.12);
}

.logo-ring {
    position: relative;
    width: 104px;
    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 30px rgba(124, 92, 255, .18),
        0 0 34px rgba(46, 230, 166, .12);
}

.logo-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;
    }
}

.logo-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: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    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 14px 34px rgba(0, 0, 0, .28),
        0 0 24px rgba(124, 92, 255, .32);
    overflow: hidden;
}

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

.register-heading {
    min-width: 0;
}

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

.register-heading h1 {
    margin: 9px 0 5px;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -.045em;
}

.register-heading p {
    margin: 0;
    max-width: 66ch;
    color: var(--muted);
    font-size: .96rem;
}

.register-card {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    padding: 24px;
    background:
        radial-gradient(720px 420px at 50% -12%, rgba(124, 92, 255, .16), transparent 68%),
        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(14px);
}

.price-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(46, 230, 166, .12), rgba(46, 230, 166, .045));
    border: 1px solid rgba(46, 230, 166, .2);
}

.price-strip span {
    display: block;
    color: #a9f0d3;
    font-weight: 800;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.price-strip strong {
    display: block;
    margin-top: 3px;
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.55rem);
    line-height: 1;
    letter-spacing: -.04em;
}

.price-strip p {
    margin: 0;
    max-width: 38ch;
    color: #b8c8e4;
    font-size: .9rem;
}

.discount-info {
    margin-top: 8px;
    color: #9ff0cf;
    font-size: .88rem;
    font-weight: 800;
}

.form-section {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .08);
}

.form-section + .form-section {
    margin-top: 14px;
}

.section-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.section-title > span,
.security-head span {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #081018;
    background: #9ff0cf;
    font-size: .72rem;
    font-weight: 900;
}

.section-title h2 {
    margin: 0;
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.section-title p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: .88rem;
}

.form-grid {
    display: grid;
    gap: 12px;
}

.form-grid.two,
.security-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.form-grid.two > .input-group {
    height: 100%;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

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

.input-group label small {
    color: var(--muted);
    font-weight: 700;
}

.input-wrap,
.select-wrap,
.promo-wrap,
.email-wrapper {
    position: relative;
    width: 100%;
}

.input-icon,
.email-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand-2);
    font-size: .86rem;
    opacity: .9;
    pointer-events: none;
    z-index: 2;
}

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

.input-wrap:not(.plain) input {
    padding-left: 38px;
}

.input-wrap.plain input {
    color-scheme: dark;
}

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

.input-wrap input:focus,
.select-wrap select:focus,
.promo-wrap input:focus,
.email-wrapper 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);
}

.select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 42px;
    cursor: pointer;
}

.select-wrap::after {
    content: "⌄";
    position: absolute;
    right: 15px;
    top: 48%;
    transform: translateY(-50%);
    color: var(--brand-2);
    font-size: 1.22rem;
    pointer-events: none;
}

.select-wrap select option {
    color: #111827;
}

.promo-row {
    display: grid;
}

.promo-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.mini-button {
    min-height: 48px;
    padding: 0 16px;
    border-radius: 15px;
    color: #081018;
    background: #9ff0cf;
    border: 1px solid rgba(46, 230, 166, .32);
    font-weight: 900;
    cursor: pointer;
    transition: transform .18s ease, filter .2s ease, opacity .2s ease;
}

.mini-button:hover {
    transform: translateY(-1px);
    filter: saturate(1.1);
}

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

.mini-button:disabled {
    opacity: .7;
    cursor: not-allowed;
}

.promo-message,
.username-availability {
    min-height: 18px;
    font-size: .82rem;
    font-weight: 800;
}

.promo-message.success,
.username-availability.available {
    color: var(--success);
}

.promo-message.error,
.username-availability.unavailable {
    color: var(--danger);
}

.email-wrapper {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    border-radius: 15px;
}

.email-wrapper input {
    padding-left: 38px;
    padding-right: 10px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.email-domain {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-left: 0;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    background: rgba(124, 92, 255, .12);
    color: #cfe1ff;
    font-weight: 800;
    white-space: nowrap;
}

/* Aligned password row */
.password-row {
    align-items: start;
}

.password-row .input-group {
    min-height: 110px;
}

.password-main-field,
.password-confirm-field {
    display: flex;
    flex-direction: column;
}

.password-confirm-field .field-spacer {
    height: 29px;
    flex: 0 0 29px;
}

/* Aligned recovery email + OTP row */
.recovery-email-row {
    align-items: start;
}

.recovery-email-row .input-group {
    min-height: 144px;
}

.recovery-email-row .field-help {
    min-height: 36px;
}

.recovery-email-row .otp-actions,
.recovery-email-row .otp-placeholder {
    min-height: 48px;
}

.otp-placeholder {
    display: block;
}

.password-strength {
    display: grid;
    gap: 6px;
}

.password-strength-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
}

.password-strength-message {
    color: #cfe1ff;
    font-size: .78rem;
    min-height: 1em;
}

.password-strength-bar {
    width: 100%;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .06);
}

.password-strength-bar div {
    width: 0;
    height: 100%;
    border-radius: inherit;
    transition: width .25s ease, background .25s ease;
}

.password-strength-bar div.weak {
    background: linear-gradient(90deg, #ff6b7a, #ff9aa5);
}

.password-strength-bar div.medium {
    background: linear-gradient(90deg, #ffd166, #ffe39c);
}

.password-strength-bar div.strong {
    background: linear-gradient(90deg, #2ee6a6, #9ff0cf);
}

.field-help {
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.45;
}

.otp-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.otp-timer {
    color: #cfe1ff;
    font-size: .84rem;
    font-weight: 700;
}

.otp-timer strong {
    color: var(--brand-2);
}

.security-grid {
    display: grid;
    gap: 12px;
}

.security-card {
    display: grid;
    gap: 11px;
    padding: 14px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .08);
}

.security-head {
    display: flex;
    align-items: center;
    gap: 9px;
}

.security-head strong {
    color: #dbe4ef;
    font-size: .92rem;
}

.terms-box {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 13px;
    border-radius: 16px;
    background: rgba(46, 230, 166, .07);
    border: 1px dashed rgba(46, 230, 166, .22);
}

.terms-box 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);
}

.terms-box p {
    margin: 0;
    color: #b8c8e4;
    font-size: .86rem;
}

.terms-box a {
    color: #fff;
    font-weight: 900;
    text-decoration: underline;
    text-decoration-color: rgba(46, 230, 166, .45);
    text-underline-offset: 3px;
}

.captcha-wrap {
    display: grid;
    justify-content: center;
    overflow: hidden;
}

.text-warning {
    margin: 0;
    color: var(--warning);
    font-weight: 800;
    text-align: center;
}

.create-account-button {
    width: 100%;
    min-height: 52px;
    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: 900;
    cursor: pointer;
    transition: transform .18s ease, filter .2s ease, box-shadow .2s ease;
}

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

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

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

.register-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed rgba(255, 255, 255, .12);
}

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

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

.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-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;
    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);
}

.toast-container {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 60;
    width: min(360px, calc(100vw - 36px));
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 44px 13px 13px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(15, 20, 27, .96), rgba(12, 17, 23, .96));
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.toast-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
}

.toast-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.toast-message p {
    margin: 0;
    color: #cfe1ff;
    font-size: .9rem;
}

.toast-message strong {
    color: #fff;
}

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

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

@media (max-width: 820px) {
    .register-page {
        padding: 16px 14px 28px;
    }

    .register-top {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 12px;
    }

    .logo-ring {
        width: 94px;
    }

    .logo-icon-card {
        width: 48px;
        height: 48px;
        border-radius: 15px;
    }

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

    .price-strip {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-grid.two,
    .security-grid {
        grid-template-columns: 1fr;
    }

    .password-row .input-group,
    .recovery-email-row .input-group {
        min-height: auto;
    }

    .password-confirm-field .field-spacer,
    .otp-placeholder {
        display: none;
    }

    .recovery-email-row .field-help {
        min-height: auto;
    }

    .recovery-email-row .otp-actions {
        min-height: auto;
    }

    .register-card {
        padding: 20px;
        border-radius: 24px;
    }

    .form-section {
        padding: 15px;
    }
}

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

    .register-heading h1 {
        font-size: 1.75rem;
    }

    .register-heading p {
        font-size: .9rem;
    }

    .price-strip {
        padding: 14px;
        border-radius: 20px;
    }

    .price-strip strong {
        font-size: 2rem;
    }

    .promo-wrap {
        grid-template-columns: 1fr;
    }

    .email-wrapper {
        grid-template-columns: 1fr;
    }

    .email-wrapper input {
        border-radius: 15px 15px 0 0;
        padding-right: 13px;
    }

    .email-domain {
        justify-content: center;
        border-left: 1px solid rgba(255, 255, 255, .1);
        border-top: 0;
        border-radius: 0 0 15px 15px;
        min-height: 42px;
    }

    .captcha-wrap {
        transform: scale(.88);
        transform-origin: center;
        min-height: 72px;
    }

    .register-links {
        flex-direction: column;
        align-items: center;
        gap: 7px;
    }
}