/* css/page-signup.css */
@layer pages {

    /* ── Hidden state radios ── */
    .auth-state-radio {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
        pointer-events: none;
    }

    /* ── Company-only field: hidden by default, shown when employer selected ── */
    .auth-company-only { display: none; }
    body:has(#role-company:checked) .auth-company-only { display: flex; }

    /* ── Email label toggle ── */
    .auth-lbl-email-employer { display: none; }
    body:has(#role-company:checked) .auth-lbl-email-candidate { display: none; }
    body:has(#role-company:checked) .auth-lbl-email-employer  { display: block; }

    /* ── Role toggle ── */
    .auth-role-wrap {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
    }
    .auth-role-lbl {
        font-size: 0.62rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        color: #9ba3c0;
        text-transform: uppercase;
    }
    .auth-role-toggle {
        display: flex;
        background: #f2f5ff;
        border-radius: 12px;
        padding: 3px;
        border: 1.5px solid #dde4f4;
        box-shadow: inset 0 2px 4px rgba(160,180,220,0.12);
        align-self: flex-start;
    }
    .auth-role-option {
        padding: 0.45em 1.4em;
        font-size: 0.68rem;
        font-weight: 700;
        font-family: inherit;
        color: #5e6690;
        border-radius: 10px;
        cursor: pointer;
        letter-spacing: 0.06em;
        border: none;
        background: transparent;
        transition: color 0.15s;
        white-space: nowrap;
        user-select: none;
    }
    body:has(#role-talent:checked)  .auth-role-option[for="role-talent"],
    body:has(#role-company:checked) .auth-role-option[for="role-company"] {
        background: #fff;
        color: #1e2140;
        box-shadow: 0 2px 0 rgba(160,180,220,0.5);
    }

    /* ── Name row — two columns ── */
    .auth-name-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    @media (max-width: 480px) {
        .auth-name-row { grid-template-columns: 1fr; }
    }

    /* ── Custom checkbox + terms ── */
    .auth-terms {
        display: flex;
        align-items: flex-start;
        gap: 0.6rem;
        margin-top: 0.1rem;
    }
    .auth-checkbox {
        width: 18px;
        height: 18px;
        border-radius: 6px;
        flex-shrink: 0;
        background: rgba(245,247,255,0.9);
        border: 1.5px solid #dde4f4;
        box-shadow: inset 0 2px 3px rgba(160,175,220,0.15);
        appearance: none;
        -webkit-appearance: none;
        cursor: pointer;
        margin-top: 1px;
        position: relative;
        transition: background 0.15s, border-color 0.15s;
    }
    .auth-checkbox:checked {
        background: #3ecb74;
        border-color: #1f8a45;
        box-shadow: 0 2px 0 #1f8a45;
    }
    .auth-checkbox:checked::after {
        content: '✓';
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 0.68rem;
        font-weight: 700;
        line-height: 1;
    }
    .auth-terms-text {
        font-size: 0.68rem;
        color: #5e6690;
        line-height: 1.5;
    }
    .auth-terms-text a {
        color: #1e2140;
        font-weight: 700;
        text-decoration: underline;
        text-decoration-color: #dde4f4;
    }
    .auth-terms-text a:hover { text-decoration-color: #5e6690; }

    /* ── Right panel: signup headline ── */
    .auth-vp-headline {
        margin-bottom: 1.5rem;
    }
    .auth-vp-headline h2 {
        font-size: 1.5rem;
        font-weight: 800;
        color: #fff;
        line-height: 1.15;
    }
    .auth-vp-headline h2 em {
        font-style: italic;
        color: rgba(180,185,230,0.85);
    }

    /* ── Preview card ── */
    .auth-preview-wrap {
        margin-bottom: 1.5rem;
    }
    .auth-preview-lbl {
        font-size: 0.55rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        color: rgba(130,140,190,0.65);
        text-transform: uppercase;
        margin-bottom: 0.55rem;
    }
    .auth-preview-card {
        background: rgba(255,255,255,0.07);
        border: 1px solid rgba(255,255,255,0.11);
        border-radius: 14px;
        padding: 0.85rem;
        box-shadow: 0 4px 0 rgba(0,0,0,0.25), 0 8px 24px rgba(0,0,0,0.18);
    }
    .auth-preview-title {
        font-size: 0.58rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        color: rgba(130,140,190,0.7);
        text-transform: uppercase;
        margin-bottom: 0.6rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }
    .auth-preview-rows {
        display: flex;
        flex-direction: column;
        gap: 0.52rem;
    }
    .auth-preview-row {
        display: flex;
        align-items: center;
        gap: 0.6rem;
    }
    .auth-mini-tile {
        width: 20px;
        height: 20px;
        border-radius: 6px 4px 7px 5px / 5px 7px 4px 6px;
        flex-shrink: 0;
        box-shadow: 0 2px 0 rgba(0,0,0,0.25);
    }
    .tile-mint  { background: linear-gradient(145deg, #c8f0d8, #a0e0b8); }
    .tile-blue  { background: linear-gradient(145deg, #d0d8ff, #b0bcf8); }
    .tile-slate { background: linear-gradient(145deg, #e0e0ec, #c8c8e0); }
    .auth-preview-co {
        flex: 1;
        font-size: 0.65rem;
        font-weight: 600;
        color: #c8caee;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .auth-preview-co span {
        font-weight: 400;
        color: rgba(160,165,210,0.7);
    }
    .auth-score-pill {
        font-size: 0.6rem;
        font-weight: 700;
        padding: 0.15em 0.55em;
        border-radius: 6px;
        flex-shrink: 0;
    }
    .score-green {
        background: rgba(62,203,116,0.22);
        color: #3ecb74;
        border: 1px solid rgba(62,203,116,0.3);
    }
    .score-yellow {
        background: rgba(246,202,62,0.18);
        color: #e0b020;
        border: 1px solid rgba(246,202,62,0.22);
    }

}
