:root {
    --reg-bg: #05040d;
    --reg-bg-soft: #090715;
    --reg-panel: rgba(10, 9, 24, 0.9);
    --reg-panel-soft: rgba(17, 13, 35, 0.72);
    --reg-purple: #8b5cf6;
    --reg-purple-light: #c084fc;
    --reg-purple-bright: #d36bff;
    --reg-green: #34d079;
    --reg-text: #f7f4ff;
    --reg-text-soft: #afa8c8;
    --reg-text-muted: #706985;
    --reg-border: rgba(196, 181, 253, 0.13);
    --reg-border-strong: rgba(168, 85, 247, 0.36);
    --reg-radius: 18px;
    --reg-radius-sm: 11px;
}

html {
    color-scheme: dark;
    background: var(--reg-bg);
}

body {
    min-width: 320px;
    color: var(--reg-text);
    background:
        radial-gradient(circle at 18% 12%, rgba(91, 52, 191, 0.14), transparent 34%),
        radial-gradient(circle at 82% 78%, rgba(126, 34, 206, 0.09), transparent 30%),
        var(--reg-bg);
    overflow-x: hidden;
}

[x-cloak] { display: none !important; }

.auth-page {
    position: relative;
    min-height: 100vh;
    grid-template-columns: minmax(400px, 45%) minmax(560px, 55%);
    isolation: isolate;
    background:
        radial-gradient(ellipse 55% 52% at 10% 10%, rgba(86, 54, 209, 0.15), transparent 67%),
        linear-gradient(120deg, #04040c 0%, #080613 46%, #05060d 100%);
}

.auth-page::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.42;
    background-image:
        linear-gradient(rgba(147, 51, 234, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(147, 51, 234, 0.045) 1px, transparent 1px);
    background-size: 62px 62px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
}

/* Branding panel */
.auth-left {
    position: sticky;
    top: 0;
    min-width: 0;
    height: 100vh;
    padding: clamp(32px, 4vw, 72px);
    align-items: stretch;
    justify-content: stretch;
    background:
        linear-gradient(110deg, rgba(4, 4, 13, 0.97), rgba(7, 5, 18, 0.88)),
        var(--reg-bg);
    border-right: 1px solid rgba(139, 92, 246, 0.09);
}

.auth-left::before {
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.05) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(ellipse 90% 80% at 30% 40%, #000 0%, transparent 75%);
}

.auth-left::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(138deg, transparent 31%, rgba(139, 92, 246, 0.08) 31.15%, transparent 31.35%),
        linear-gradient(138deg, transparent 43%, rgba(139, 92, 246, 0.045) 43.1%, transparent 43.3%),
        radial-gradient(circle at 50% 87%, rgba(111, 45, 210, 0.18), transparent 29%);
}

.register-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(90px);
    opacity: 0.6;
}

.register-orb-one {
    width: 390px;
    height: 390px;
    right: -160px;
    top: -130px;
    background: rgba(91, 51, 190, 0.26);
}

.register-orb-two {
    width: 300px;
    height: 300px;
    left: -120px;
    bottom: -100px;
    background: rgba(168, 85, 247, 0.16);
}

.brand-shell {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 580px;
    min-height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 48px;
    margin-bottom: clamp(34px, 5vh, 64px);
}

.brand-logo img {
    width: auto;
    max-width: 240px;
    height: 48px;
    object-fit: contain;
    filter: brightness(1.45) saturate(1.12) drop-shadow(0 0 14px rgba(168, 85, 247, 0.2));
}

.brand-wordmark {
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    background: linear-gradient(100deg, #b76cff, #dd80ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-kicker {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    padding: 7px 13px;
    color: #b979ff;
    background: rgba(139, 92, 246, 0.065);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-kicker::after {
    content: '';
    width: 5px;
    height: 5px;
    margin-left: 3px;
    border-radius: 50%;
    background: #b65cff;
    box-shadow: 0 0 9px rgba(182, 92, 255, 0.85);
    animation: register-status 3s ease-in-out infinite;
}

.brand-title {
    max-width: 520px;
    margin-bottom: 20px;
    font-size: clamp(2.45rem, 4vw, 4rem);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -0.055em;
    color: #f8f7ff;
}

.brand-title span {
    display: block;
    color: transparent;
    background: linear-gradient(105deg, #8b5cf6 0%, #c366ff 50%, #e088ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 18px rgba(168, 85, 247, 0.16));
}

.brand-title i {
    margin-left: 7px;
    color: #b967ff;
    font-size: 0.7em;
    -webkit-text-fill-color: #b967ff;
    transform: rotate(-12deg);
}

.brand-description {
    max-width: 470px;
    margin-bottom: 30px;
    color: #b2acc8;
    font-size: 1rem;
    line-height: 1.75;
}

.brand-description span { display: block; }

.brand-benefits {
    width: min(100%, 470px);
    display: grid;
    gap: 9px;
}

.brand-benefit {
    display: grid;
    grid-template-columns: 38px 1fr;
    align-items: center;
    gap: 14px;
    min-height: 66px;
    padding: 11px 16px;
    border: 1px solid rgba(196, 181, 253, 0.1);
    border-radius: 11px;
    background: linear-gradient(100deg, rgba(32, 18, 56, 0.47), rgba(12, 10, 27, 0.38));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.brand-benefit:hover {
    transform: translateX(4px);
    border-color: rgba(168, 85, 247, 0.25);
    background: linear-gradient(100deg, rgba(51, 27, 82, 0.55), rgba(14, 11, 31, 0.48));
}

.brand-benefit-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #b75fff;
    background: rgba(139, 92, 246, 0.085);
    border: 1px solid rgba(168, 85, 247, 0.13);
    font-size: 0.95rem;
}

.brand-benefit strong {
    display: block;
    margin-bottom: 2px;
    color: #f3f0fb;
    font-size: 0.85rem;
    font-weight: 700;
}

.brand-benefit p {
    color: #847d9e;
    font-size: 0.7rem;
    line-height: 1.45;
}

.setup-platform {
    position: relative;
    width: min(100%, 520px);
    height: 178px;
    margin-top: auto;
    display: grid;
    place-items: center;
    perspective: 800px;
}

.platform-glow {
    position: absolute;
    left: 50%;
    bottom: -14px;
    width: 100%;
    height: 96px;
    translate: -50% 0;
    border: 1px solid rgba(151, 71, 255, 0.35);
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(126, 34, 206, 0.2), rgba(85, 24, 154, 0.04) 50%, transparent 70%);
    box-shadow: 0 0 32px rgba(124, 58, 237, 0.19), inset 0 0 26px rgba(168, 85, 247, 0.07);
    transform: rotateX(67deg);
}

.platform-glow::before,
.platform-glow::after {
    content: '';
    position: absolute;
    inset: 12px 38px;
    border: 1px solid rgba(168, 85, 247, 0.26);
    border-radius: 50%;
}

.platform-glow::after { inset: 26px 92px; opacity: 0.65; }

.setup-panel {
    position: relative;
    z-index: 2;
    width: min(78%, 390px);
    min-height: 106px;
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    align-items: center;
    gap: 20px;
    padding: 22px 26px;
    border: 1px solid rgba(192, 103, 255, 0.46);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(51, 25, 91, 0.84), rgba(16, 11, 36, 0.88));
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.4), 0 0 30px rgba(139, 92, 246, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: rotateX(2deg) rotateY(-5deg) rotateZ(-2deg);
    animation: setup-float 7s ease-in-out infinite;
}

.setup-stat { text-align: center; }
.setup-stat strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1.45rem;
    font-weight: 900;
    color: #e8d8ff;
    text-shadow: 0 0 18px rgba(192, 132, 252, 0.35);
}
.setup-stat span { color: #aaa0c2; font-size: 0.69rem; }
.setup-divider { width: 1px; height: 48px; background: rgba(196, 181, 253, 0.17); }

/* Registration panel */
.auth-right {
    position: relative;
    min-width: 0;
    min-height: 100vh;
    padding: clamp(18px, 2.3vw, 38px);
    align-items: center;
    overflow: visible;
    background:
        radial-gradient(circle at 12% 4%, rgba(91, 51, 190, 0.11), transparent 28%),
        linear-gradient(145deg, rgba(8, 8, 20, 0.84), rgba(4, 7, 13, 0.97));
}

.auth-right::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.3;
    background-image: radial-gradient(circle, rgba(168, 85, 247, 0.34) 1px, transparent 1.5px);
    background-size: 11px 11px;
    mask-image: radial-gradient(circle at 92% 18%, #000 0 56px, transparent 120px);
}

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    padding: 0;
}

.mobile-card-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(196, 181, 253, 0.18);
    border-radius: 21px;
    background:
        radial-gradient(circle at 0 0, rgba(91, 51, 190, 0.15), transparent 27%),
        linear-gradient(145deg, rgba(15, 13, 34, 0.93), rgba(5, 8, 16, 0.95));
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(139, 92, 246, 0.025),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.mobile-card-shell::before,
.mobile-card-shell::after {
    content: '';
    position: absolute;
    z-index: 3;
    width: 24px;
    height: 24px;
    pointer-events: none;
}

.mobile-card-shell::before {
    top: -1px;
    right: -1px;
    border-top: 2px solid #b462ff;
    border-right: 2px solid #b462ff;
    border-radius: 0 21px 0 0;
}

.mobile-card-shell::after {
    left: -1px;
    bottom: -1px;
    border-left: 2px solid #8b5cf6;
    border-bottom: 2px solid #8b5cf6;
    border-radius: 0 0 0 21px;
}

.mobile-form-body { padding: clamp(26px, 3vw, 38px) clamp(24px, 3.2vw, 42px); }

.desktop-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px !important;
}

.desktop-header-copy h2 {
    margin: 0 0 5px;
    color: #faf8ff;
    font-size: clamp(1.4rem, 2vw, 1.75rem);
    font-weight: 900;
    letter-spacing: -0.035em;
}

.desktop-header-copy p { color: #aa66ff; font-size: 0.78rem; font-weight: 600; }

.security-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid rgba(52, 208, 121, 0.13);
    border-radius: 99px;
    color: #7f8e8b;
    background: rgba(52, 208, 121, 0.035);
    font-size: 0.66rem;
}

.security-pill i { color: #34d079; }

.progress-bar {
    height: 2px;
    margin-bottom: 26px;
    background: rgba(255, 255, 255, 0.055);
}

.progress-fill {
    background: linear-gradient(90deg, #6d37df, #ad54ff);
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.4);
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.steps-row {
    margin-bottom: 28px;
    padding: 0 4px;
    overflow: visible;
}

.step-dot {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(196, 181, 253, 0.18);
    color: #716b88;
    background: rgba(4, 7, 15, 0.52);
    font-size: 0.73rem;
}

.step-dot.pending {
    color: #69637c;
    border: 1px solid rgba(196, 181, 253, 0.14);
    background: rgba(4, 7, 15, 0.44);
}

.step-dot.active {
    border: 1px solid #ae5aff;
    background: linear-gradient(145deg, #7130d9, #a94df2);
    box-shadow: 0 0 0 7px rgba(139, 92, 246, 0.09), 0 0 24px rgba(168, 85, 247, 0.48);
}

.step-dot.done {
    border: 1px solid rgba(168, 85, 247, 0.55);
    background: rgba(112, 48, 207, 0.68);
    box-shadow: 0 0 13px rgba(139, 92, 246, 0.24);
}

.step-line {
    min-width: 10px;
    margin: 0 8px;
    background: rgba(196, 181, 253, 0.13);
}

.step-line.done { background: linear-gradient(90deg, #7130d9, rgba(168, 85, 247, 0.46)); }

.form-step { will-change: opacity, transform; }
.form-step-enter { transition: opacity 0.22s ease, transform 0.22s ease; }
.form-step-enter-start { opacity: 0; transform: translateX(12px); }
.form-step-enter-end { opacity: 1; transform: translateX(0); }
.form-step-leave { transition: opacity 0.15s ease, transform 0.15s ease; }
.form-step-leave-start { opacity: 1; transform: translateX(0); }
.form-step-leave-end { opacity: 0; transform: translateX(-9px); }

.prelude-header { max-width: 600px; margin-bottom: 25px; }
.prelude-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    color: #b567ff;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.prelude-header h2 { margin-bottom: 8px; color: #faf8ff; font-size: 1.55rem; font-weight: 900; letter-spacing: -0.035em; }
.prelude-header p { color: #8d86a2; font-size: 0.85rem; line-height: 1.6; }

.field-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #d9d4e8;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.025em;
}

.field-label > i {
    width: 15px;
    color: #a855f7;
    font-size: 0.76rem;
    text-align: center;
}

.field-label .opt { color: #6f6981; }

.field-input {
    min-height: 49px;
    padding: 12px 14px;
    color: #f4f1fb;
    caret-color: #bd6cff;
    background: rgba(3, 7, 16, 0.5);
    border: 1px solid rgba(196, 181, 253, 0.12);
    border-radius: var(--reg-radius-sm);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.24);
    font-size: 0.87rem;
    font-weight: 500;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field-input::placeholder { color: #625d75; }

.field-input:hover { border-color: rgba(196, 181, 253, 0.2); }

.field-input:focus {
    border-color: rgba(168, 85, 247, 0.68);
    background: rgba(7, 8, 20, 0.72);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.09), 0 0 20px rgba(139, 92, 246, 0.07);
}

.field-input.valid {
    border-color: rgba(52, 208, 121, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(52, 208, 121, 0.045);
}

.field-input.error,
.field-input.invalid {
    border-color: rgba(248, 113, 113, 0.62) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.055);
}

.field-row { gap: 18px; }
.hint { color: #7e7795; font-size: 0.7rem; }
.err-msg { color: #fb8b98; font-size: 0.7rem; }
.check-msg { font-size: 0.7rem; }
.check-msg.ok { color: #4bd887; }

.select-wrap::after { color: #9b5de5; }
.field-input option { color: #eee9fa; background: #0e0b1c; }

.hf-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.hf-btn {
    min-height: 56px;
    padding: 12px 14px;
    color: #9e97b5;
    background: rgba(3, 7, 16, 0.45);
    border: 1px solid rgba(196, 181, 253, 0.11);
    border-radius: 11px;
}

.hf-btn:hover {
    translate: 0 -2px;
    color: #eeeaf8;
    border-color: rgba(168, 85, 247, 0.34);
    background: rgba(139, 92, 246, 0.055);
}

.hf-btn.selected {
    color: #f6f2ff;
    border-color: rgba(168, 85, 247, 0.65);
    background: rgba(126, 34, 206, 0.13);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.055), inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.hf-icon {
    width: 22px;
    color: #ac5cff;
    font-size: 0.95rem;
    text-align: center;
}

.checkbox-wrap {
    padding: 13px 14px;
    border-color: rgba(196, 181, 253, 0.11);
    border-radius: 10px;
    background: rgba(4, 7, 15, 0.42);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.checkbox-wrap:hover {
    border-color: rgba(168, 85, 247, 0.28);
    background: rgba(139, 92, 246, 0.035);
}

.checkbox-box {
    border: 1px solid rgba(196, 181, 253, 0.25);
    border-radius: 4px;
}

.checkbox-wrap.checked .checkbox-box {
    border-color: #9c49eb;
    background: linear-gradient(145deg, #7130d9, #a855f7);
    box-shadow: 0 0 11px rgba(168, 85, 247, 0.3);
}

.checkbox-text { color: #a9a2bd; font-size: 0.71rem; line-height: 1.55; }
.checkbox-text a { color: #c26aff; font-weight: 600; }

.btn-row {
    margin-top: 27px;
    padding-top: 20px;
    border-top-color: rgba(196, 181, 253, 0.09);
}

.btn-primary,
.btn-ghost,
.btn-submit {
    min-height: 48px;
    padding: 12px 23px;
    border-radius: 10px;
    font-size: 0.82rem;
    letter-spacing: -0.01em;
}

.btn-primary,
.btn-submit {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(216, 164, 255, 0.35);
    background: linear-gradient(105deg, #6f2ed8, #a33feb 62%, #b95cf5);
    box-shadow: 0 11px 30px rgba(90, 37, 170, 0.27), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn-primary::before,
.btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 28%, rgba(255, 255, 255, 0.16) 50%, transparent 72%);
    translate: -110% 0;
    transition: translate 0.65s ease;
}

.btn-primary:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(127, 54, 209, 0.37), 0 0 20px rgba(168, 85, 247, 0.14);
}

.btn-primary:hover::before,
.btn-submit:hover::before { translate: 110% 0; }

.btn-primary:disabled,
.btn-submit:disabled {
    cursor: not-allowed;
    opacity: 0.52;
    transform: none;
    box-shadow: none;
}

.btn-ghost {
    color: #a995c7;
    border-color: rgba(168, 85, 247, 0.24);
    background: rgba(5, 7, 17, 0.34);
}

.btn-ghost:hover {
    color: #e3d6f6;
    border-color: rgba(168, 85, 247, 0.43);
    background: rgba(139, 92, 246, 0.065);
}

.button-content { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 9px; }
.button-spinner { animation: register-spin 0.8s linear infinite; }

.upload-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px !important;
}

.upload-area {
    min-height: 156px;
    display: grid;
    place-items: center;
    padding: 19px 12px;
    border: 1px dashed rgba(196, 181, 253, 0.19);
    border-radius: 12px;
    background: rgba(4, 7, 15, 0.42);
}

.upload-area:hover {
    translate: 0 -2px;
    border-color: rgba(168, 85, 247, 0.48);
    background: rgba(139, 92, 246, 0.055);
}

.upload-area .up-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto 10px;
    display: grid;
    place-items: center;
    color: #ad5cff;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.08);
    font-size: 1.05rem;
}

.upload-area .up-label { color: #c3bdd4; font-size: 0.72rem; line-height: 1.45; }
.upload-area .up-sub { color: #6c6680; font-size: 0.63rem; }

.email-icon {
    width: 70px;
    height: 70px;
    margin: 4px auto 17px;
    display: grid;
    place-items: center;
    color: #bd68ff;
    border: 1px solid rgba(168, 85, 247, 0.27);
    border-radius: 20px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.16), rgba(139, 92, 246, 0.035));
    box-shadow: 0 0 26px rgba(139, 92, 246, 0.12);
    font-size: 1.5rem;
}

.otp-row { gap: 9px; }
.otp-box {
    width: 50px;
    height: 58px;
    border-color: rgba(196, 181, 253, 0.15);
    background: rgba(3, 7, 16, 0.5);
}
.otp-box:focus { border-color: rgba(168, 85, 247, 0.7); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.09); }

.info-box {
    color: #bba9d3;
    border-color: rgba(168, 85, 247, 0.18);
    background: rgba(139, 92, 246, 0.055);
}

.input-wrap .icon-right { color: #9d58e1; }

.strength-seg { background: rgba(255, 255, 255, 0.065); }

.success-screen { padding: 30px 0; }
.success-icon { color: #55dd91; background: rgba(52, 208, 121, 0.07); border-color: rgba(52, 208, 121, 0.55); }

.alert-error {
    color: #ffafb8;
    border-color: rgba(248, 113, 113, 0.23);
    background: rgba(239, 68, 68, 0.075);
}

.register-login-footer {
    padding: 17px 22px;
    text-align: center;
    border-top: 1px solid rgba(196, 181, 253, 0.08);
    background: rgba(3, 5, 13, 0.25);
}

.register-login-footer p { color: #756e8a; font-size: 0.76rem; }
.register-login-footer a { margin-left: 4px; color: #bc64ff; font-weight: 700; text-decoration: none; }
.register-login-footer a:hover { color: #d492ff; }

@keyframes setup-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -7px; }
}

@keyframes register-status {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

@keyframes register-spin { to { transform: rotate(360deg); } }

@media (min-width: 900px) {
    .auth-left { display: flex !important; }
    #mobile-logo,
    .mobile-card-header,
    .mobile-progress,
    .mobile-step-nav { display: none !important; }

    .mobile-card-shell {
        margin: 0;
        overflow: hidden;
        border: 1px solid rgba(196, 181, 253, 0.18);
        border-radius: 21px;
    }

    .mobile-form-body { padding: clamp(26px, 3vw, 38px) clamp(24px, 3.2vw, 42px); }
}

@media (max-width: 1240px) and (min-width: 900px) {
    .auth-page { grid-template-columns: minmax(340px, 41%) minmax(500px, 59%); }
    .auth-left { padding: 36px 30px; }
    .brand-logo { margin-bottom: 30px; }
    .brand-title { font-size: clamp(2.35rem, 4vw, 3.2rem); }
    .brand-description { margin-bottom: 24px; }
    .setup-platform { height: 150px; }
    .auth-right { padding: 18px; }
    .field-row { grid-template-columns: 1fr; }
    .upload-grid { grid-template-columns: 1fr; }
}

@media (max-height: 820px) and (min-width: 900px) {
    .auth-left { padding-top: 28px; padding-bottom: 24px; }
    .brand-logo { min-height: 40px; margin-bottom: 20px; }
    .brand-logo img { height: 40px; }
    .brand-kicker { margin-bottom: 13px; }
    .brand-title { margin-bottom: 12px; font-size: clamp(2.2rem, 3.5vw, 3rem); }
    .brand-description { margin-bottom: 18px; font-size: 0.9rem; line-height: 1.55; }
    .brand-benefits { gap: 6px; }
    .brand-benefit { min-height: 54px; padding: 7px 12px; }
    .setup-platform { height: 132px; }
    .setup-panel { min-height: 88px; padding: 16px 20px; }
    .auth-right { align-items: flex-start; }
}

@media (max-height: 1050px) and (min-width: 900px) {
    .auth-right { padding-top: 20px; padding-bottom: 20px; }
    .mobile-form-body { padding-top: 22px; padding-bottom: 22px; }
    .desktop-header { margin-bottom: 18px !important; }
    .progress-bar { margin-bottom: 18px; }
    .steps-row { margin-bottom: 18px; }
    .step-dot { width: 34px; height: 34px; }
    .form-stack { gap: 13px !important; }
    .field-label { margin-bottom: 6px; }
    .field-input { min-height: 45px; padding-top: 10px; padding-bottom: 10px; }
    .checkbox-wrap { padding-top: 10px; padding-bottom: 10px; }
    .btn-row { margin-top: 18px; padding-top: 15px; }
}

@media (max-width: 899px) {
    .auth-page {
        display: block;
        min-height: 100vh;
        background: var(--reg-bg);
    }

    .auth-left {
        position: relative;
        top: auto;
        display: flex !important;
        width: 100%;
        height: auto;
        min-height: 310px;
        padding: 28px 24px 48px;
        border-right: none;
        border-bottom: 1px solid rgba(139, 92, 246, 0.09);
    }

    .brand-shell { max-width: 720px; min-height: auto; }
    .brand-logo { margin-bottom: 26px; }
    .brand-logo img { height: 40px; max-width: 210px; }
    .brand-kicker { margin-bottom: 15px; }
    .brand-title { max-width: 620px; margin-bottom: 14px; font-size: clamp(2rem, 7vw, 3.2rem); }
    .brand-description { margin-bottom: 0; font-size: 0.92rem; }
    .brand-benefits,
    .setup-platform { display: none; }

    .auth-right {
        min-height: 0;
        margin-top: -24px;
        padding: 0 14px 38px;
        align-items: flex-start;
        background: transparent;
        overflow: visible;
    }

    .auth-card { max-width: 720px; padding: 0; }
    #mobile-logo { display: none !important; }

    .mobile-card-shell {
        margin: 0;
        border-radius: 18px;
        border-color: rgba(196, 181, 253, 0.16);
        background: linear-gradient(145deg, rgba(15, 13, 33, 0.98), rgba(5, 8, 16, 0.98));
    }

    .mobile-card-header {
        display: block !important;
        padding: 23px 20px 17px;
        text-align: left;
        border-bottom: 1px solid rgba(196, 181, 253, 0.08);
    }

    .mobile-card-header .mobile-eyebrow {
        display: block;
        margin-bottom: 6px;
        color: #a65bf1;
        font-size: 0.64rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .mobile-card-header h1 { color: #faf8ff; font-size: 1.3rem; }
    .mobile-card-header p { color: #8b849f; }

    .mobile-progress {
        display: block;
        height: 2px;
        background: rgba(255, 255, 255, 0.05);
    }

    .mobile-progress-fill { background: linear-gradient(90deg, #7432df, #b85dff); box-shadow: 0 0 12px rgba(168, 85, 247, 0.35); }

    .mobile-step-nav {
        display: block;
        padding: 17px 16px;
        border-bottom: 1px solid rgba(196, 181, 253, 0.075);
    }

    .mobile-step-nav-inner {
        display: grid !important;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        align-items: center;
        gap: 8px !important;
    }

    .mobile-step-row { display: contents !important; }
    .mobile-step-row > div { justify-content: center; min-width: 0; }
    .mobile-step-item { gap: 0; }
    .mobile-step-dot { width: 31px; height: 31px; border-color: rgba(196, 181, 253, 0.17); color: #686178; background: rgba(3, 7, 16, 0.45); }
    .mobile-step-dot.active { border-color: #a950ef; background: linear-gradient(145deg, #7130d9, #a84cf1); box-shadow: 0 0 0 5px rgba(139, 92, 246, 0.075), 0 0 14px rgba(168, 85, 247, 0.35); }
    .mobile-step-dot.done { background: rgba(112, 48, 207, 0.68); }
    .mobile-step-label { display: none; }

    .mobile-form-body { padding: 24px 20px 27px; }
    .desktop-header,
    .progress-bar,
    .steps-row { display: none !important; }

    .field-row { grid-template-columns: 1fr 1fr; }
    .upload-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .auth-left { min-height: 290px; padding: 24px 20px 45px; }
    .brand-logo { margin-bottom: 20px; }
    .brand-logo img { height: 36px; max-width: 190px; }
    .brand-kicker { padding: 6px 10px; font-size: 0.61rem; }
    .brand-title { font-size: clamp(2rem, 10vw, 2.75rem); }
    .brand-description span { display: inline; }
    .field-row { grid-template-columns: 1fr; gap: 16px; }
    .upload-grid { grid-template-columns: 1fr; }
    .upload-area { min-height: 130px; }
    .hf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 460px) {
    .auth-left { min-height: 278px; padding-left: 18px; padding-right: 18px; }
    .brand-title { letter-spacing: -0.045em; }
    .auth-right { padding-left: 9px; padding-right: 9px; }
    .mobile-form-body { padding: 22px 15px 24px; }
    .mobile-card-header { padding-left: 16px; padding-right: 16px; }
    .mobile-step-nav { padding-left: 10px; padding-right: 10px; }
    .mobile-step-nav-inner { gap: 4px !important; }
    .mobile-step-dot { width: 29px; height: 29px; }
    .field-input { min-height: 50px; font-size: 16px; }
    .btn-row { display: grid; grid-template-columns: 1fr 1fr; }
    .btn-primary,
    .btn-ghost { width: 100%; padding-left: 12px; padding-right: 12px; }
    .otp-row { gap: 5px; }
    .otp-box { width: calc((100vw - 92px) / 6); max-width: 47px; min-width: 38px; height: 52px; }
    .checkbox-text { font-size: 0.7rem; }
}

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