/* ==================================================================
   CoachOS — înregistrare prin invitație și regăsirea spațiului
   Un singur card pe ecran. Nimic de citit în plus, nimic de decis.
   ================================================================== */

.reg-body { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; }

.reg { position: relative; z-index: 2; width: 100%; max-width: 470px; text-align: center; }
.reg__brand { display: inline-flex; justify-content: center; margin-bottom: 26px; }

.reg__card {
    text-align: left; padding: clamp(26px, 5vw, 38px);
    border: 1px solid var(--line); border-radius: var(--r-lg);
    background: linear-gradient(180deg, var(--surface), var(--ink-2));
    box-shadow: 0 40px 90px rgba(0, 0, 0, .55);
}
.reg__card h1 { font-size: clamp(1.55rem, 4.5vw, 2rem); margin-top: 14px; }
.reg__sub  { color: var(--text-soft); margin-top: 12px; font-size: .95rem; }
.reg__fine { color: var(--text-mute); font-size: .82rem; margin-top: 16px; text-align: center; }
.reg__foot { margin-top: 26px; font-size: .82rem; color: var(--text-mute); }
.reg__foot a { color: var(--text-mute); }
.reg__foot a:hover { color: var(--text); }
.reg__sep  { margin-inline: 10px; opacity: .5; }
.reg__plat { opacity: .6; }

/* câmpuri */
.reg .field { margin-bottom: 16px; }
.reg .field__label { display: block; font-size: .86rem; font-weight: 600; color: var(--text-soft); margin-bottom: 7px; }
.reg .field__label .req { color: var(--lime); margin-left: 2px; }
.reg .field__help { font-size: .78rem; color: var(--text-mute); margin-top: 6px; }

.reg .input, .reg .select {
    width: 100%; padding: 13px 15px; font: inherit; font-size: .95rem;
    color: var(--text); background: var(--ink); border: 1px solid var(--line);
    border-radius: var(--r-sm); transition: border-color .18s, box-shadow .18s;
}
.reg .input:focus, .reg .select:focus {
    outline: none; border-color: var(--jade);
    box-shadow: 0 0 0 3px rgba(31, 216, 164, .18);
}
.reg .input::placeholder { color: #4b5464; }

.reg__two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 460px) { .reg__two { grid-template-columns: 1fr; } }

/* adresa: câmp + sufixul fix, ca un tot */
.reg__slug { display: flex; align-items: stretch; }
.reg__slug .input { border-radius: var(--r-sm) 0 0 var(--r-sm); border-right: 0; }
.reg__slug span {
    display: flex; align-items: center; padding-inline: 14px; white-space: nowrap;
    font-size: .9rem; color: var(--text-mute); background: var(--surface-2);
    border: 1px solid var(--line); border-left: 0; border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* eroare */
.reg__err {
    margin: 16px 0 4px; padding: 12px 15px; border-radius: var(--r-sm);
    background: rgba(255, 90, 90, .1); border: 1px solid rgba(255, 90, 90, .28);
    color: #ff8b8b; font-size: .88rem;
}

/* invitație Diamond */
.reg__diamond {
    display: flex; align-items: center; gap: 14px; padding: 15px 17px; margin-bottom: 6px;
    border-radius: var(--r); border: 1px solid rgba(56, 214, 255, .3);
    background: linear-gradient(120deg, rgba(56, 214, 255, .12), rgba(124, 107, 255, .10));
}
.reg__gem {
    font-size: 1.5rem; line-height: 1;
    background: linear-gradient(160deg, #eafcff, #38d6ff 45%, #7c6bff);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 0 10px rgba(56, 214, 255, .5));
}
.reg__diamond b  { display: block; font-size: .95rem; letter-spacing: .04em; }
.reg__diamond em { display: block; font-style: normal; font-size: .8rem; color: var(--text-mute); margin-top: 2px; }

/* ultima adresă folosită */
.reg__last {
    display: flex; flex-direction: column; gap: 2px; padding: 13px 16px; margin-bottom: 18px;
    border-radius: var(--r-sm); border: 1px solid var(--line);
    background: var(--surface-2); transition: border-color .18s;
}
.reg__last:hover { border-color: var(--jade); text-decoration: none; }
.reg__last span { font-size: .74rem; color: var(--text-mute); }
.reg__last b    { font-size: .95rem; color: var(--lime); }

/* ecran de final */
.reg__card--done { text-align: center; }
.reg__tick {
    width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%;
    display: grid; place-items: center; font-size: 1.8rem; font-weight: 800;
    color: #06070a; background: var(--brand);
}
.reg__url {
    display: flex; flex-direction: column; gap: 3px; padding: 13px 16px; margin-top: 10px;
    border-radius: var(--r-sm); background: var(--ink); border: 1px solid var(--line-soft);
    text-align: left;
}
.reg__url span { font-size: .72rem; color: var(--text-mute); }
.reg__url code { font-family: var(--mono); font-size: .88rem; color: var(--text-soft); word-break: break-all; }
.reg__url--main { border-color: rgba(200, 245, 60, .3); }
.reg__url--main code { color: var(--lime); }

.reg__card--blocked { text-align: center; }

/* -------------------------------------------------- formularul de cerere */
.reg--wide { max-width: 560px; }

.reg__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.reg__pill input { position: absolute; opacity: 0; pointer-events: none; }
.reg__pill span {
    display: inline-block; padding: 9px 15px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--surface-2);
    font-size: .86rem; color: var(--text-soft); cursor: pointer;
    transition: all .16s;
}
.reg__pill span:hover { border-color: var(--surface-3); color: var(--text); }
.reg__pill input:checked + span {
    border-color: var(--jade); color: var(--lime);
    background: rgba(31, 216, 164, .1);
}
.reg__pill input:focus-visible + span { box-shadow: 0 0 0 3px rgba(31, 216, 164, .25); }

.reg textarea.input { resize: vertical; min-height: 84px; font-family: inherit; }

/* „@" scris în câmp, nu de om. */
.reg__handle { position: relative }
.reg__handle > span {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted, #6b7688);
    font-weight: 700;
    pointer-events: none;
}
.reg__handle .input { padding-left: 30px }
