:root {
    --gold: #c9a84c;
    --gold-light: #f0d080;
    --gold-dim: #7a5f28;
    --dark: #050507;
    --dark2: #0a0a10;
    --dark3: #0f0f18;
    --silver: #a8b5c8;
    --silver-dim: #5a6478;
    --glow: #c9a84c88;
    --error: #e05555;
    --success: #27ae60;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    background: var(--dark);
    color: var(--silver);
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
    display: flex;
    overflow-y: auto;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--dark2);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dim);
    border-radius: 3px;
}

#bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.page {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ── LEFT ── */
.pl {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(150deg, rgba(201, 168, 76, .08) 0%, rgba(5, 5, 7, .5) 70%);
    border-right: 1px solid rgba(201, 168, 76, .1);
}

.pl::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 65% 55% at 50% 50%, rgba(201, 168, 76, .06) 0%, transparent 70%);
}

.emb {
    position: absolute;
    width: 520px;
    height: 520px;
    opacity: .055;
    animation: spin 110s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.lc {
    position: relative;
    z-index: 1;
    text-align: center;
}

.bt {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #fff;
    text-shadow: 0 0 50px var(--glow), 0 0 100px rgba(201, 168, 76, .15);
    line-height: 1.1;
    margin-bottom: 10px;
}

.bt span {
    color: var(--gold);
}

.bs {
    font-family: 'Cinzel', serif;
    font-size: .62rem;
    letter-spacing: .4em;
    text-transform: uppercase;
    color: var(--silver-dim);
    margin-bottom: 48px;
}

.dv {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
}

.dvl {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, .3));
}

.dvl.r {
    background: linear-gradient(90deg, rgba(201, 168, 76, .3), transparent);
}

.dvg {
    width: 7px;
    height: 7px;
    background: var(--gold);
    transform: rotate(45deg);
    box-shadow: 0 0 10px var(--glow);
}

/* Steps sidebar */
.steps {
    text-align: left;
    max-width: 340px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    opacity: .4;
    transition: opacity .4s;
}

.step-item.active {
    opacity: 1;
}

.step-item.done {
    opacity: .7;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 76, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: .65rem;
    color: var(--gold-dim);
    flex-shrink: 0;
    transition: all .4s;
}

.step-item.active .step-num {
    border-color: var(--gold);
    color: var(--gold-light);
    box-shadow: 0 0 12px var(--glow);
    background: rgba(201, 168, 76, .08);
}

.step-item.done .step-num {
    border-color: #27ae60;
    color: #5dd88a;
    background: rgba(39, 174, 96, .08);
}

.step-text {
    padding-top: 6px;
}

.step-title {
    font-family: 'Cinzel', serif;
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--silver);
    margin-bottom: 3px;
}

.step-item.active .step-title {
    color: var(--gold-light);
}

.step-item.done .step-title {
    color: #5dd88a;
}

.step-desc {
    font-size: .88rem;
    color: var(--silver-dim);
    line-height: 1.5;
}

/* ── RIGHT ── */
.pr {
    width: 480px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    background: var(--dark2);
    position: relative;
    overflow: hidden;
}

.pr::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.pr::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201, 168, 76, .04) 0%, transparent 60%);
}

.bk {
    position: absolute;
    top: 24px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: 'Cinzel', serif;
    font-size: .58rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--silver-dim);
    text-decoration: none;
    transition: color .3s;
    z-index: 2;
}

.bk:hover {
    color: var(--gold);
}

.bk:hover svg {
    transform: translateX(-3px);
}

.bk svg {
    transition: transform .3s;
}

.fw {
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Screens */
.screen {
    display: none;
    animation: fadeIn .4s ease;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fh {
    text-align: center;
    margin-bottom: 28px;
}

.fe {
    font-family: 'Cinzel', serif;
    font-size: .58rem;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-bottom: 10px;
}

.ft {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.65rem;
    color: #fff;
    text-shadow: 0 0 24px var(--glow);
    margin-bottom: 6px;
}

.fs {
    font-style: italic;
    font-size: .95rem;
    color: var(--silver-dim);
    line-height: 1.6;
}

.orn {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.ol {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, .3));
}

.ol.r {
    background: linear-gradient(90deg, rgba(201, 168, 76, .3), transparent);
}

.od {
    width: 6px;
    height: 6px;
    background: var(--gold);
    transform: rotate(45deg);
    box-shadow: 0 0 7px var(--glow);
}

/* Fields */
.fld {
    margin-bottom: 16px;
}

.flbl {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: .57rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--silver-dim);
    margin-bottom: 7px;
}

.fwp {
    position: relative;
}

.fico {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-dim);
    pointer-events: none;
    display: flex;
}

.fico svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.finp {
    width: 100%;
    padding: 12px 13px 12px 38px;
    background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(201, 168, 76, .15);
    color: var(--silver);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    outline: none;
    transition: border-color .3s, background .3s, box-shadow .3s;
    -webkit-appearance: none;
}

.finp::placeholder {
    color: var(--silver-dim);
    font-style: italic;
}

.finp:focus {
    border-color: rgba(201, 168, 76, .5);
    background: rgba(201, 168, 76, .04);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, .07);
}

.finp.err {
    border-color: rgba(224, 85, 85, .5);
}

.finp.ok {
    border-color: rgba(39, 174, 96, .4);
}

.ferr {
    font-size: .8rem;
    color: var(--error);
    margin-top: 5px;
    font-style: italic;
    display: none;
}

.ferr.show {
    display: block;
}

/* OTP inputs */
.otp-wrap {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 8px;
}

.otp-input {
    width: 52px;
    height: 60px;
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    letter-spacing: 0;
    background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(201, 168, 76, .2);
    color: var(--gold-light);
    outline: none;
    transition: all .3s;
    -webkit-appearance: none;
}

.otp-input:focus {
    border-color: var(--gold);
    background: rgba(201, 168, 76, .06);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, .08);
}

.otp-input.filled {
    border-color: rgba(201, 168, 76, .4);
}

/* Password strength */
.pstr-bars {
    display: flex;
    gap: 4px;
    margin: 8px 0 4px;
}

.pstr-bar {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, .07);
    transition: background .4s;
}

.pstr-bar.w {
    background: var(--error);
}

.pstr-bar.m {
    background: var(--gold);
}

.pstr-bar.s {
    background: #5dd88a;
}

.pstr-lbl {
    font-family: 'Cinzel', serif;
    font-size: .52rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--silver-dim);
}

/* Toggle password */
.ftog {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--silver-dim);
    padding: 4px;
    transition: color .3s;
}

.ftog:hover {
    color: var(--gold);
}

.ftog svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    display: block;
}

/* Submit */
.bgo {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4a3800, #2a2000);
    border: none;
    outline: 1px solid rgba(201, 168, 76, .45);
    outline-offset: -1px;
    color: var(--gold-light);
    font-family: 'Cinzel', serif;
    font-size: .75rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .35s;
    clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 0 20px rgba(201, 168, 76, .12), inset 0 1px 0 rgba(201, 168, 76, .1);
    margin-bottom: 18px;
}

.bgo::before,
.bgo::after {
    content: '\25C6';
    font-size: .45rem;
    color: var(--gold);
    opacity: .8;
}

.bgo:hover {
    background: linear-gradient(135deg, #6a5200, #4a3800);
    outline-color: var(--gold);
    box-shadow: 0 0 36px rgba(201, 168, 76, .38), inset 0 1px 0 rgba(201, 168, 76, .18);
    color: #fff;
}

.bgo:active {
    transform: scale(.99);
}

.bgo:disabled {
    opacity: .55;
    cursor: not-allowed;
}

/* Info box */
.info-box {
    background: rgba(201, 168, 76, .06);
    border: 1px solid rgba(201, 168, 76, .18);
    border-left: 3px solid var(--gold);
    padding: 14px 16px;
    margin-bottom: 18px;
    font-size: .92rem;
    color: var(--silver);
    line-height: 1.65;
}

.info-box strong {
    color: var(--gold-light);
}

.info-box.success-box {
    background: rgba(39, 174, 96, .06);
    border-color: rgba(39, 174, 96, .3);
    border-left-color: #27ae60;
}

.info-box.success-box strong {
    color: #5dd88a;
}

/* Resend link */
.resend-row {
    text-align: center;
    margin-bottom: 16px;
}

.resend-lbl {
    font-family: 'Cinzel', serif;
    font-size: .6rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--silver-dim);
}

.resend-btn {
    font-family: 'Cinzel', serif;
    font-size: .6rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold);
    background: none;
    border: none;
    cursor: pointer;
    transition: color .3s;
    text-decoration: underline;
}

.resend-btn:hover {
    color: var(--gold-light);
}

.resend-timer {
    color: var(--silver-dim);
}

/* Success screen */
.success-icon {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 20px;
    display: block;
    filter: drop-shadow(0 0 16px rgba(39, 174, 96, .5));
}

.success-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(39, 174, 96, .4);
    text-align: center;
    margin-bottom: 10px;
}

.success-desc {
    font-style: italic;
    color: var(--silver-dim);
    text-align: center;
    line-height: 1.7;
    margin-bottom: 28px;
}

.ff {
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: .6rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--silver-dim);
}

.ff a {
    color: var(--gold);
    text-decoration: none;
    transition: color .3s;
}

.ff a:hover {
    color: var(--gold-light);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 28px;
    background: var(--dark3);
    border: 1px solid rgba(201, 168, 76, .3);
    padding: 13px 24px;
    font-family: 'Cinzel', serif;
    font-size: .62rem;
    letter-spacing: .1em;
    color: var(--gold);
    opacity: 0;
    pointer-events: none;
    transition: all .4s;
    z-index: 999;
    transform: translateY(10px);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.ok {
    border-color: rgba(39, 174, 96, .4);
    color: #5dd88a;
}

.toast.er {
    border-color: rgba(224, 85, 85, .4);
    color: #e07070;
}

@media(max-width:820px) {
    .pl {
        display: none;
    }

    .pr {
        width: 100%;
        padding: 70px 28px;
        min-height: 100vh;
    }
}