/* ── MAIN WRAPPER ── */
.main {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(36px, 5vh, 64px) clamp(20px, 5vw, 40px);
}

/* ── CARD ── */
.card {
    width: 100%;
    max-width: 500px;
    background: var(--panel);
    border: 1px solid var(--borderW);
    border-radius: 26px;
    overflow: hidden;
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(232, 184, 75, 0.05);
    animation: cardIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(32px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ── STEP TRACK ── */
.step-track {
    display: flex;
    align-items: center;
    padding: 20px 28px 0;
    gap: 0;
    margin-bottom: 28px;
}

.stp {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stp-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    border: 2px solid var(--borderW);
    color: var(--muted2);
    font-family: "Plus Jakarta Sans", sans-serif;
    transition: all 0.4s;
}

.stp-circle.active {
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 0 4px rgba(232, 184, 75, 0.1);
}

.stp-circle.done {
    background: var(--gold);
    border-color: var(--gold);
    color: #000;
    font-size: 14px;
}

.stp-lbl {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted2);
    white-space: nowrap;
    transition: color 0.4s;
}

.stp-lbl.active {
    color: var(--gold);
}

.stp-lbl.done {
    color: rgba(232, 184, 75, 0.45);
}

.track-line {
    flex: 1;
    height: 1px;
    background: var(--borderW);
    margin: 0 10px;
    transition: background 0.4s;
}

.track-line.done {
    background: rgba(232, 184, 75, 0.3);
}

/* ── VIEWS (Steps) ── */
.view {
    display: none;
    padding: 0 28px 32px;
}

.view.show {
    display: block;
    animation: vIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes vIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ── VIEW HEADER ── */
.v-icon {
    font-size: 52px;
    display: block;
    text-align: center;
    margin-bottom: 14px;
    line-height: 1;
    animation: iconPop 0.5s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes iconPop {
    from {
        transform: scale(0) rotate(-25deg);
    }

    to {
        transform: scale(1) rotate(0);
    }
}

.v-eyebrow {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: var(--gold);
    text-align: center;
    margin-bottom: 7px;
}

.v-title {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    text-align: center;
    margin-bottom: 8px;
}

.v-title em {
    font-style: normal;
    color: var(--gold-lt);
}

.v-sub {
    font-size: 14px;
    font-weight: 400;
    color: var(--muted);
    line-height: 1.7;
    text-align: center;
    margin-bottom: 28px;
}

.v-sub strong {
    color: var(--text);
    font-weight: 600;
}

.v-sub em {
    color: var(--gold-lt);
    font-style: normal;
    font-weight: 600;
}

/* ── FIELD ── */
.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 16px;
}

.field label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    color: rgba(232, 184, 75, 0.6);
}

.fi-wrap {
    position: relative;
}

.fi-wrap .fi {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: rgba(232, 184, 75, 0.35);
    pointer-events: none;
    z-index: 1;
}

.fi-wrap input {
    width: 100%;
    background: var(--surface);
    border: 1.5px solid var(--borderW);
    border-radius: var(--r);
    padding: 14px 16px 14px 46px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 14.5px;
    font-weight: 400;
    color: var(--text);
    outline: none;
    transition:
        border-color 0.22s,
        box-shadow 0.22s,
        background 0.22s;
}

.fi-wrap input::placeholder {
    color: rgba(255, 255, 255, 0.16);
}

.fi-wrap input:focus {
    border-color: rgba(232, 184, 75, 0.5);
    box-shadow: 0 0 0 4px rgba(232, 184, 75, 0.07);
    background: rgba(232, 184, 75, 0.025);
}

.fi-wrap input.valid {
    border-color: rgba(74, 222, 128, 0.45);
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.07);
}

.fi-wrap input.invalid {
    border-color: rgba(255, 64, 128, 0.45);
    box-shadow: 0 0 0 4px rgba(255, 64, 128, 0.07);
}

/* Eye toggle */
.eye {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--muted2);
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    transition: color 0.2s;
}

.eye:hover {
    color: var(--gold);
}

/* Field hint */
.field-hint {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted2);
    display: flex;
    align-items: center;
    gap: 5px;
}

.field-hint.ok {
    color: var(--green);
}

.field-hint.err {
    color: var(--pink);
}

/* ── OTP INPUT ── */
.otp-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 16px;
}

.otp-box {
    width: 52px;
    height: 58px;
    border-radius: 12px;
    background: var(--surface);
    border: 1.5px solid var(--borderW);
    font-family: "Cormorant Garamond", serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--gold-lt);
    text-align: center;
    outline: none;
    transition:
        border-color 0.22s,
        box-shadow 0.22s,
        background 0.22s;
    caret-color: var(--gold);
}

.otp-box:focus {
    border-color: rgba(232, 184, 75, 0.5);
    box-shadow: 0 0 0 4px rgba(232, 184, 75, 0.08);
    background: rgba(232, 184, 75, 0.03);
}

.otp-box.filled {
    border-color: rgba(232, 184, 75, 0.3);
    background: rgba(232, 184, 75, 0.04);
}

/* OTP timer */
.otp-timer {
    text-align: center;
    font-size: 13px;
    color: var(--muted2);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.timer-num {
    font-weight: 800;
    color: var(--gold);
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

.resend-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--gold-lt);
    text-decoration: underline;
    display: none;
    transition: color 0.2s;
}

.resend-btn:hover {
    color: var(--gold);
}

.resend-btn.show {
    display: inline;
}

/* ── PASSWORD STRENGTH ── */
.pw-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.pw-segs {
    display: flex;
    gap: 4px;
    flex: 1;
}

.pw-seg {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.07);
    transition: background 0.3s;
}

.pw-lbl {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted2);
    white-space: nowrap;
}

/* ── DIVIDER ── */
.divider {
    height: 1px;
    background: var(--borderW);
    margin: 6px 0 20px;
}

/* ── PRIMARY BUTTON ── */
.btn-primary {
    width: 100%;
    padding: 15px;
    border-radius: var(--r);
    border: none;
    cursor: pointer;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 15px;
    font-weight: 800;
    background: linear-gradient(
        135deg,
        var(--gold-dk),
        var(--gold),
        var(--gold-lt)
    );
    color: #000;
    box-shadow: 0 8px 24px rgba(232, 184, 75, 0.26);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    position: relative;
    overflow: hidden;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    margin-bottom: 14px;
    letter-spacing: 0.2px;
}

.btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent);
    opacity: 0;
    transition: opacity 0.22s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(232, 184, 75, 0.4);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:active {
    transform: none;
}

/* ── LINK ROW ── */
.link-row {
    text-align: center;
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.6;
}

.link-row a {
    color: var(--gold-lt);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.link-row a:hover {
    text-decoration: underline;
}

/* ── INFO BOX ── */
.info-box {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--gold-dim2);
    border: 1px solid rgba(232, 184, 75, 0.12);
    border-left: 3px solid var(--gold);
    border-radius: 12px;
    padding: 13px 16px;
    margin-bottom: 20px;
}

.info-box i {
    color: var(--gold);
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-box p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.62;
}

.info-box p strong {
    color: var(--text);
    font-weight: 700;
}

@keyframes checkPop {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

/* ── RESPONSIVE ── */
@media (max-width: 560px) {
    .card {
        border-radius: 20px;
    }

    .step-track {
        padding: 18px 20px 0;
    }

    .stp-lbl {
        display: none;
    }

    .track-line {
        margin: 0 6px;
    }

    .view {
        padding: 0 20px 28px;
    }

    .otp-box {
        width: 44px;
        height: 52px;
        font-size: 22px;
        border-radius: 10px;
    }

    .otp-row {
        gap: 7px;
    }
}

@media (max-width: 380px) {
    .otp-box {
        width: 38px;
        height: 46px;
        font-size: 20px;
    }

    .otp-row {
        gap: 5px;
    }
}
