:root {
    --signup-ink: #0d2436;
    --signup-ink-soft: #5f707b;
    --signup-surface: #f3f6f2;
    --signup-panel: #ffffff;
    --signup-lime: #cfe766;
    --signup-lime-deep: #89a93c;
    --signup-sea: #b9d9ec;
    --signup-line: #d7e2dc;
}

.signup-page {
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    color: var(--signup-ink);
    background: radial-gradient(circle at 10% 15%, #f8ffe5 0%, #eef3f8 45%, #f3f6f2 100%);
}

.signup-page h1,
.signup-page h2,
.signup-page h3,
.signup-page h4,
.signup-brand {
    font-family: 'Space Grotesk', sans-serif;
}

.signup-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
}

.signup-visual {
    position: relative;
    overflow: hidden;
    padding: 36px 46px;
    background: linear-gradient(155deg, #0f293d 0%, #173a4f 54%, #2a6a64 100%);
    color: #fff;
    display: grid;
    align-content: space-between;
}

.signup-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
}

.signup-brand .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #0f293d;
    background: var(--signup-lime);
    transform: rotate(-10deg);
}

.signup-brand span span {
    color: var(--signup-lime);
}

.signup-hero {
    max-width: 460px;
}

.signup-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.signup-hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(2rem, 4.6vw, 4.2rem);
    line-height: 0.94;
    letter-spacing: -0.05em;
}

.signup-hero h1 em {
    color: var(--signup-lime);
    font-style: normal;
}

.signup-hero p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    line-height: 1.7;
}

.hero-points {
    margin-top: 22px;
    display: grid;
    gap: 11px;
}

.hero-points span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.92);
}

.hero-points i {
    color: var(--signup-lime);
}

.signup-art {
    position: absolute;
    right: -70px;
    bottom: -80px;
    width: 300px;
    height: 300px;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
}

.orb-a {
    width: 240px;
    height: 240px;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(207, 231, 102, 0.45) 0%, rgba(207, 231, 102, 0.08) 70%);
}

.orb-b {
    width: 140px;
    height: 140px;
    right: 130px;
    bottom: 130px;
    background: radial-gradient(circle at 35% 35%, rgba(185, 217, 236, 0.42) 0%, rgba(185, 217, 236, 0.08) 70%);
}

.orb-c {
    width: 90px;
    height: 90px;
    right: 220px;
    bottom: 70px;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.02) 75%);
}

.signup-panel {
    padding: 28px clamp(20px, 4vw, 54px);
    display: grid;
    align-content: start;
}

.signup-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.back-home,
.to-login {
    color: #5f707b;
    text-decoration: none;
    font-size: 0.77rem;
    font-weight: 600;
}

.back-home i {
    margin-right: 5px;
}

.signup-card {
    margin-top: 14px;
    background: var(--signup-panel);
    border: 1px solid var(--signup-line);
    border-radius: 20px;
    box-shadow: 0 24px 40px rgba(10, 25, 37, 0.08);
    padding: 18px;
}

.signup-progress {
    background: linear-gradient(125deg, #ffffff 0%, #f6faee 100%);
    border: 1px solid #e0eadf;
    border-radius: 15px;
    padding: 14px;
}

.progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.progress-head h2 {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: -0.03em;
}

.progress-head span {
    font-size: 0.72rem;
    color: var(--signup-ink-soft);
    font-weight: 700;
}

.progress-track {
    margin: 12px 0;
    height: 8px;
    border-radius: 999px;
    background: #e8eee8;
    overflow: hidden;
}

.progress-fill {
    width: 25%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--signup-lime-deep) 0%, #173a4f 100%);
    transition: width 0.2s ease;
}

.step-chips {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.step-chip {
    border-radius: 999px;
    border: 1px solid #d9e3dd;
    background: #fff;
    color: #63737d;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 5px 10px;
}

.step-chip.is-active {
    color: #15364c;
    border-color: #b9cf97;
    background: #f2f8e8;
}

.signup-alert {
    margin-top: 12px;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.76rem;
    font-weight: 600;
    border: 1px solid transparent;
    display: none;
}

.signup-alert.is-visible {
    display: block;
}

.signup-alert.success {
    background: #ecf8ef;
    color: #1f6136;
    border-color: #bfdcc8;
}

.signup-alert.error {
    background: #fff1ee;
    color: #8a362e;
    border-color: #efcbc4;
}

.signup-form {
    margin-top: 12px;
    display: grid;
    gap: 14px;
}

.signup-step {
    display: none;
}

.signup-step.is-active {
    display: grid;
    gap: 12px;
}

.signup-step h3 {
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: -0.03em;
}

.signup-step p {
    margin: 0;
    color: #60717b;
    font-size: 0.79rem;
}

.field-grid {
    display: grid;
    gap: 10px;
}

.field-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.signup-step label {
    display: grid;
    gap: 7px;
}

.signup-step label > span {
    font-size: 0.68rem;
    color: #42535f;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.signup-step input {
    width: 100%;
    border: 1px solid #d7e2dc;
    border-radius: 11px;
    padding: 11px 12px;
    background: #fff;
    font-size: 0.84rem;
    color: var(--signup-ink);
}

.signup-step small {
    color: #9a5a4f;
    font-size: 0.72rem;
    min-height: 16px;
}

.otp-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.otp-row small {
    min-height: 0;
    color: #61737e;
}

.selfie-box {
    border: 1px solid #dbe5df;
    border-radius: 14px;
    background: #fbfdfc;
    padding: 13px;
    display: grid;
    gap: 11px;
}

.selfie-box h4 {
    margin: 0;
    font-size: 0.9rem;
}

.selfie-box p {
    margin: 5px 0 0;
    font-size: 0.74rem;
}

.selfie-stage {
    width: min(330px, 100%);
    border-radius: 12px;
    border: 1px solid #d2dfd8;
    overflow: hidden;
    background: #e9f1ea;
    aspect-ratio: 1 / 1;
}

.selfie-stage video,
.selfie-stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.selfie-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.review-box {
    border: 1px solid #dce6e0;
    border-radius: 12px;
    overflow: hidden;
}

.review-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #edf2ef;
}

.review-row:last-child {
    border-bottom: 0;
}

.review-row span {
    color: #5e6f79;
    font-size: 0.75rem;
}

.review-row strong {
    color: var(--signup-ink);
    font-size: 0.77rem;
}

.terms-row {
    display: flex !important;
    gap: 9px;
    align-items: flex-start;
}

.terms-row input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

.terms-row span {
    font-size: 0.77rem !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: #4f606b !important;
    font-weight: 500 !important;
}

.signup-nav {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.signup-nav .button {
    min-width: 120px;
    justify-content: center;
}

.signup-success-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(7, 20, 32, 0.66);
    display: grid;
    place-items: center;
    padding: 18px;
}

.signup-success-card {
    width: min(440px, 100%);
    border-radius: 16px;
    background: #fff;
    border: 1px solid #dce6e1;
    box-shadow: 0 24px 50px rgba(8, 25, 40, 0.2);
    text-align: center;
    padding: 24px 20px;
    display: grid;
    gap: 11px;
    justify-items: center;
}

.signup-success-card .icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #ecf8ef;
    color: #2b7c43;
    border: 1px solid #c8e5cf;
    font-size: 1.35rem;
}

.signup-success-card h3 {
    margin: 0;
    font-size: 1.15rem;
}

.signup-success-card p {
    margin: 0;
    color: #5f707a;
    font-size: 0.82rem;
}

@media (max-width: 980px) {
    .signup-shell {
        grid-template-columns: 1fr;
    }

    .signup-visual {
        min-height: 330px;
        padding: 24px;
    }

    .signup-panel {
        margin-top: -36px;
        position: relative;
        z-index: 2;
        padding: 0 16px 24px;
    }

    .signup-card {
        border-radius: 18px;
    }
}

@media (max-width: 760px) {
    .field-grid.two {
        grid-template-columns: 1fr;
    }

    .signup-nav {
        flex-direction: column;
    }

    .signup-nav .button,
    .selfie-actions .button,
    .otp-row .button {
        width: 100%;
    }

    .signup-top-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding-top: 14px;
    }
}
