/* Focused, step-by-step jobseeker registration aligned with the compact login. */
body[data-peso-page='jobseeker-register'] {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0 0 34px !important;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 8% 7%, color-mix(in srgb, var(--reg-brand) 12%, transparent), transparent 27rem),
        radial-gradient(circle at 92% 94%, color-mix(in srgb, #d6a514 10%, transparent), transparent 25rem),
        var(--reg-canvas) !important;
    isolation: isolate;
}

body[data-peso-page='jobseeker-register']::before {
    content: '';
    position: fixed;
    z-index: -1;
    top: 50%;
    left: 50%;
    width: clamp(460px, 68vw, 880px);
    height: clamp(460px, 68vw, 880px);
    opacity: .045;
    background: url('../images/peso_logo.jpg') center / contain no-repeat;
    border-radius: 50%;
    filter: saturate(.72);
    transform: translate(-50%, -45%);
    pointer-events: none;
}

html[data-theme='light'] body[data-peso-page='jobseeker-register']::before { opacity: .055; mix-blend-mode: multiply; }

body[data-peso-page='jobseeker-register'] .registration-toolbar {
    width: min(calc(100% - 32px), 1100px);
    min-height: 76px;
    margin-inline: auto;
}

body[data-peso-page='jobseeker-register'] .registration-brand img {
    border-color: #d6a514;
    box-shadow: 0 8px 22px rgba(7, 75, 43, .18);
}

body[data-peso-page='jobseeker-register'] .registration-back,
body[data-peso-page='jobseeker-register'] .registration-theme-toggle {
    min-height: 45px;
    color: var(--reg-ink) !important;
    background: color-mix(in srgb, var(--reg-surface) 91%, transparent) !important;
    border-color: var(--reg-line) !important;
    backdrop-filter: blur(16px);
}

body[data-peso-page='jobseeker-register'] > .page {
    width: min(calc(100% - 32px), 820px) !important;
    max-width: 820px !important;
    margin: 10px auto 0 !important;
}

body[data-peso-page='jobseeker-register'] .card {
    overflow: hidden;
    color: var(--reg-ink);
    background: color-mix(in srgb, var(--reg-surface) 95%, transparent) !important;
    border: 1px solid var(--reg-line) !important;
    border-radius: 27px !important;
    box-shadow: 0 28px 80px rgba(6, 45, 27, .2) !important;
    backdrop-filter: blur(22px);
}

body[data-peso-page='jobseeker-register'] .card-header {
    min-height: 0 !important;
    padding: 32px clamp(24px, 5vw, 42px) 28px !important;
    display: block !important;
    text-align: center !important;
    background:
        radial-gradient(circle at 88% 0, rgba(240, 201, 77, .18), transparent 16rem),
        linear-gradient(135deg, #04512f, #087443) !important;
}

body[data-peso-page='jobseeker-register'] .card-header::before {
    top: -110px;
    right: -70px;
    width: 260px;
    height: 260px;
    opacity: .6;
}

body[data-peso-page='jobseeker-register'] .card-header::after { display: none; }

body[data-peso-page='jobseeker-register'] .registration-card-identity {
    position: relative;
    z-index: 1;
    width: max-content;
    max-width: 100%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff !important;
    text-align: left;
    text-decoration: none;
}

body[data-peso-page='jobseeker-register'] .registration-card-identity img {
    width: 48px;
    height: 48px;
    padding: 2px;
    object-fit: cover;
    background: #fff;
    border: 2px solid #f0c94d;
    border-radius: 50%;
    box-shadow: 0 9px 22px rgba(0,0,0,.18);
}

body[data-peso-page='jobseeker-register'] .registration-card-identity span { display: grid; gap: 2px; }
body[data-peso-page='jobseeker-register'] .registration-card-identity strong { color: #fff; font-size: .82rem; }
body[data-peso-page='jobseeker-register'] .registration-card-identity small { color: #dcefe5; font-size: .59rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

body[data-peso-page='jobseeker-register'] .registration-hero-badge { margin: 0 auto 13px; }

html body[data-peso-page='jobseeker-register'] .card-header h1 {
    max-width: none;
    font-size: clamp(1.95rem, 5vw, 2.8rem) !important;
    line-height: 1.06 !important;
    letter-spacing: -.052em !important;
}

html body[data-peso-page='jobseeker-register'] .card-header .registration-hero-copy > p {
    max-width: 54ch;
    margin: 12px auto 0;
    font-size: .82rem;
    line-height: 1.6;
}

body[data-peso-page='jobseeker-register'] .registration-hero-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px 15px;
    margin: 19px auto 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

html body[data-peso-page='jobseeker-register'] .registration-hero-benefits span { font-size: .68rem; }

body[data-peso-page='jobseeker-register'] .card-body { padding: clamp(24px, 5vw, 40px) !important; }
body[data-peso-page='jobseeker-register'] .registration-intro { margin-bottom: 19px; }
body[data-peso-page='jobseeker-register'] .registration-intro h2 { font-size: clamp(1.45rem, 3vw, 1.85rem) !important; }
body[data-peso-page='jobseeker-register'] .registration-intro p { max-width: 55ch; }

body[data-peso-page='jobseeker-register'] .registration-section-nav {
    position: static;
    gap: 6px;
    margin-bottom: 20px;
    padding: 6px;
    box-shadow: none;
}

body[data-peso-page='jobseeker-register'] .registration-section-nav :is(a, button) {
    position: relative;
    min-height: 40px;
    padding-inline: 8px;
    font: inherit;
    cursor: pointer;
}

body[data-peso-page='jobseeker-register'] .registration-section-nav :is(a, button).is-active {
    color: #fff !important;
    background: #087443;
    border-color: #087443;
}

body[data-peso-page='jobseeker-register'] .registration-section-nav :is(a, button).is-active span {
    color: #04512f;
    background: #f0c94d;
}

body[data-peso-page='jobseeker-register'] .registration-section-nav :is(a, button).is-complete:not(.is-active) {
    color: var(--reg-brand) !important;
    background: var(--reg-surface-soft);
}

body[data-peso-page='jobseeker-register'] .registration-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: -5px 2px 20px;
    color: var(--reg-muted);
    font-size: .69rem;
    font-weight: 750;
}

body[data-peso-page='jobseeker-register'] .registration-progress > span:first-child { white-space: nowrap; }
body[data-peso-page='jobseeker-register'] .registration-progress-track { flex: 1; height: 5px; overflow: hidden; background: var(--reg-line); border-radius: 99px; }
body[data-peso-page='jobseeker-register'] .registration-progress-track i { display: block; width: 25%; height: 100%; background: linear-gradient(90deg, #d6a514, #087443); border-radius: inherit; transition: width 220ms ease; }

body[data-peso-page='jobseeker-register'] .form[data-wizard-ready] .section { display: none; }
body[data-peso-page='jobseeker-register'] .form[data-wizard-ready] .section.is-active { display: block; animation: registrationStepIn 230ms ease; }

@keyframes registrationStepIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

body[data-peso-page='jobseeker-register'] .section {
    margin: 0 !important;
    padding: clamp(19px, 3.2vw, 27px) !important;
    background: color-mix(in srgb, var(--reg-surface-soft) 72%, var(--reg-surface)) !important;
    border: 1px solid var(--reg-line) !important;
    border-radius: 18px !important;
}

body[data-peso-page='jobseeker-register'] .section-head { margin-bottom: 20px; }
body[data-peso-page='jobseeker-register'] .input-group { background: var(--reg-surface) !important; }

body[data-peso-page='jobseeker-register'] .registration-step-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}

body[data-peso-page='jobseeker-register'] .registration-step-actions button {
    min-height: 46px;
    padding: 10px 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    font: 800 .78rem/1 Inter, sans-serif;
    cursor: pointer;
}

body[data-peso-page='jobseeker-register'] .registration-step-actions--end { justify-content: flex-end; }
body[data-peso-page='jobseeker-register'] .registration-step-button--secondary {
    color: var(--reg-ink);
    background: var(--reg-surface);
    border: 1px solid var(--reg-line);
}
body[data-peso-page='jobseeker-register'] .registration-step-button--primary {
    margin-left: auto;
    color: #fff;
    background: #087443;
    border: 1px solid #087443;
    box-shadow: 0 10px 24px rgba(8, 116, 67, .2);
}
body[data-peso-page='jobseeker-register'] .registration-step-button:focus-visible,
body[data-peso-page='jobseeker-register'] .registration-section-nav button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--reg-brand) 38%, transparent);
    outline-offset: 2px;
}
body[data-peso-page='jobseeker-register'] .registration-section-nav button:disabled {
    cursor: not-allowed;
    opacity: .62;
}

body[data-peso-page='jobseeker-register'] .registration-step-back {
    color: var(--reg-ink);
    background: var(--reg-surface);
    border: 1px solid var(--reg-line);
}

body[data-peso-page='jobseeker-register'] .registration-step-next {
    margin-left: auto;
    color: #fff;
    background: #087443;
    border: 1px solid #087443;
    box-shadow: 0 10px 24px rgba(8, 116, 67, .2);
}

body[data-peso-page='jobseeker-register'] .registration-step-actions--final { align-items: flex-end; }
body[data-peso-page='jobseeker-register'] .registration-submit-area { flex: 1; margin-top: 0; }
body[data-peso-page='jobseeker-register'] .registration-submit-area p { color: var(--reg-muted); }
body[data-peso-page='jobseeker-register'] .registration-step-actions .btn-submit {
    width: 100%;
    min-height: 52px;
    padding: 13px 18px;
    font-size: .82rem;
    border-radius: 13px !important;
    background: linear-gradient(135deg, #087443, #056136) !important;
}
body[data-peso-page='jobseeker-register'] .btn-submit[aria-busy='true'] { cursor: wait; opacity: .78; }
body[data-peso-page='jobseeker-register'] .location-manual-field { display: grid; gap: 7px; margin-top: 11px; }
body[data-peso-page='jobseeker-register'] .location-manual-field[hidden] { display: none !important; }
body[data-peso-page='jobseeker-register'] .location-manual-field small { color: var(--reg-muted); font-size: .7rem; line-height: 1.45; }
body[data-peso-page='jobseeker-register'] .login-link { margin-top: 20px; }

body[data-peso-page='jobseeker-register'] .modal-container {
    color: var(--reg-ink);
    background: var(--reg-surface) !important;
    border-color: var(--reg-line) !important;
    box-shadow: 0 30px 80px rgba(0,0,0,.28);
}

body[data-peso-page='jobseeker-register'] .modal-body,
body[data-peso-page='jobseeker-register'] .modal-footer { background: var(--reg-surface) !important; }
body[data-peso-page='jobseeker-register'] .terms-content :is(h3, strong) { color: var(--reg-ink) !important; }
body[data-peso-page='jobseeker-register'] .terms-content :is(p, li) { color: var(--reg-muted) !important; }

@media (max-width: 680px) {
    body[data-peso-page='jobseeker-register'] .registration-toolbar { width: min(calc(100% - 22px), 1100px); min-height: 68px; }
    body[data-peso-page='jobseeker-register'] .registration-brand small { display: none; }
    body[data-peso-page='jobseeker-register'] .registration-back span,
    body[data-peso-page='jobseeker-register'] .registration-theme-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
    body[data-peso-page='jobseeker-register'] .registration-back,
    body[data-peso-page='jobseeker-register'] .registration-theme-toggle { width: 44px; padding: 0; justify-content: center; }
    body[data-peso-page='jobseeker-register'] > .page { width: min(calc(100% - 22px), 820px) !important; }
    body[data-peso-page='jobseeker-register'] .card { border-radius: 22px !important; }
    body[data-peso-page='jobseeker-register'] .card-header { padding: 27px 20px 24px !important; }
    body[data-peso-page='jobseeker-register'] .registration-hero-benefits { display: grid; justify-content: start; width: max-content; max-width: 100%; margin-top: 17px; text-align: left; }
    body[data-peso-page='jobseeker-register'] .card-body { padding: 23px 18px 26px !important; }
    body[data-peso-page='jobseeker-register'] .registration-intro { display: block; }
    body[data-peso-page='jobseeker-register'] .registration-time { margin-top: 11px; }
    body[data-peso-page='jobseeker-register'] .registration-section-nav { grid-template-columns: repeat(4, 1fr); }
    body[data-peso-page='jobseeker-register'] .registration-section-nav :is(a, button) { font-size: 0; gap: 0; }
    body[data-peso-page='jobseeker-register'] .registration-section-nav :is(a, button) span { font-size: .67rem; }
    body[data-peso-page='jobseeker-register'] .grid { grid-template-columns: 1fr !important; }
    body[data-peso-page='jobseeker-register'] .field.span-2 { grid-column: auto !important; }
    body[data-peso-page='jobseeker-register'] .registration-step-actions { align-items: stretch; }
    body[data-peso-page='jobseeker-register'] .registration-step-actions--final { display: grid; grid-template-columns: 1fr; }
    body[data-peso-page='jobseeker-register'] .registration-step-actions--final .registration-step-button--secondary { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    body[data-peso-page='jobseeker-register'] .form[data-wizard-ready] .section.is-active { animation: none; }
}
