/* ЮГИД — регистрация туриста и организатора (/register, /register?as=organizer). Токены — tokens.css, кнопки — home.css. */

.yg-reg-page {
    padding: 32px 0 88px; font-family: var(--yg-font-body); color: var(--yg-ink);
    background:
        radial-gradient(ellipse at 10% 10%, rgba(56, 189, 248, .14), transparent 36%),
        radial-gradient(ellipse at 92% 85%, rgba(255, 193, 35, .14), transparent 32%);
}
.yg-reg-page *, .yg-reg-page *::before, .yg-reg-page *::after { box-sizing: border-box; }

.yg-reg-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 12px; color: var(--yg-ink-soft); font-size: 14px; font-weight: 700; text-decoration: none; }
.yg-reg-back:hover { color: var(--yg-sea); }
.yg-reg-back svg { width: 17px; height: 17px; transform: rotate(180deg); }

.yg-reg-layout {
    display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    max-width: 1120px; margin: 0 auto; overflow: hidden;
    border-radius: var(--yg-radius-lg); background: var(--yg-card); box-shadow: var(--yg-shadow-lg);
}

/* ---------- Левая колонка ---------- */
.yg-reg-intro {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; justify-content: center;
    padding: clamp(32px, 5vw, 64px); color: #fff;
    background:
        radial-gradient(ellipse at 88% 8%, rgba(255, 193, 35, .25), transparent 38%),
        linear-gradient(125deg, rgba(11, 46, 69, .97), rgba(3, 105, 161, .86)),
        url('/images/hero-1280.jpg') 58% center / cover;
}
.yg-reg-intro::after {
    content: ''; position: absolute; z-index: -1; right: -120px; bottom: -170px; width: 360px; height: 360px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 0 0 34px rgba(255, 255, 255, .035), 0 0 0 68px rgba(255, 255, 255, .025);
}
.yg-reg-kicker {
    display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px;
    font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--yg-sea);
}
.yg-reg-kicker::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: var(--yg-sun); }
.yg-reg-intro .yg-reg-kicker { color: var(--yg-sun); }
.yg-reg-intro h1 {
    margin: 0; max-width: 460px; color: #fff; font-family: var(--yg-font-head);
    font-size: clamp(28px, 3.6vw, 44px); font-weight: 600; line-height: 1.15; letter-spacing: -.03em; text-wrap: balance;
}
.yg-reg-intro h1 em { font-style: normal; color: var(--yg-sun); }
.yg-reg-intro > p { max-width: 420px; margin: 18px 0 0; color: rgba(255, 255, 255, .82); font-size: 16px; line-height: 1.65; }

.yg-reg-steps { display: grid; gap: 10px; margin: 32px 0 0; padding: 0; list-style: none; counter-reset: yg-reg; }
.yg-reg-steps li {
    position: relative; padding: 14px 16px 14px 60px; border-radius: 16px;
    background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.yg-reg-steps li::before {
    counter-increment: yg-reg; content: counter(yg-reg);
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%;
    display: grid; place-items: center; background: var(--yg-sun); color: var(--yg-ink); font: 700 13px/1 var(--yg-font-head);
}
.yg-reg-steps b { display: block; font-size: 15px; color: #fff; }
.yg-reg-steps span { font-size: 13px; color: rgba(255, 255, 255, .72); }

.yg-reg-perks { display: grid; gap: 12px; margin: 32px 0 0; padding: 0; list-style: none; }
.yg-reg-perks li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .9); }
.yg-reg-perks svg { width: 36px; height: 36px; flex: none; padding: 8px; border-radius: 12px; background: rgba(255, 193, 35, .16); color: var(--yg-sun); }

/* ---------- Форма ---------- */
.yg-reg-card { padding: clamp(28px, 4vw, 48px); }
.yg-reg-card h2 { margin: 0 0 24px; font-family: var(--yg-font-head); font-size: clamp(24px, 2.4vw, 30px); font-weight: 600; letter-spacing: -.02em; }

.yg-reg-alert { margin: -8px 0 20px; padding: 12px 16px; border-radius: 14px; background: #FEF2F2; color: #991B1B; font-size: 14px; font-weight: 700; }

.yg-reg-role { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.yg-reg-role legend { margin: 0 0 6px; padding: 0; font-size: 13px; font-weight: 700; color: var(--yg-ink-soft); }
.yg-reg-role__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: 18px; background: var(--yg-sky-soft); box-shadow: inset 0 0 0 1px var(--yg-border); }
.yg-reg-role label { position: relative; margin: 0; cursor: pointer; }
.yg-reg-role input { position: absolute; opacity: 0; pointer-events: none; }
.yg-reg-role span {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 13px;
    font-weight: 800; font-size: 15px; color: var(--yg-ink-soft); transition: background-color .2s, color .2s, box-shadow .2s;
}
.yg-reg-role svg { width: 18px; height: 18px; }
.yg-reg-role label:hover span { color: var(--yg-sea); }
.yg-reg-role input:checked + span { background: #fff; color: var(--yg-ink); box-shadow: 0 1px 2px rgba(11, 46, 69, .08), 0 4px 12px rgba(11, 46, 69, .08); }
.yg-reg-role input:checked + span svg { color: var(--yg-sea); }
.yg-reg-role input:focus-visible + span { outline: 3px solid var(--yg-sun-dark); outline-offset: 2px; }

.yg-reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.yg-reg-field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--yg-ink-soft); }
.yg-reg-field input {
    width: 100%; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--yg-border);
    background: var(--yg-sky-soft); font: 600 16px/1 var(--yg-font-body); color: var(--yg-ink);
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.yg-reg-field input::placeholder { color: #94A3B8; font-weight: 500; }
.yg-reg-field input:focus { outline: none; border-color: var(--yg-sea); background: #fff; box-shadow: 0 0 0 4px rgba(3, 105, 161, .15); }
.yg-reg-field.is-invalid input { border-color: #DC2626; background: #FEF2F2; }
.yg-reg-error { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: #B91C1C; }
.yg-reg-hint { margin: 6px 0 0; font-size: 13px; color: var(--yg-muted); }

.yg-reg-pass { position: relative; }
.yg-reg-pass input { padding-right: 52px; }
.yg-reg-eye {
    position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; border: 0; border-radius: 12px; cursor: pointer;
    display: grid; place-items: center; background: transparent; color: var(--yg-muted);
}
.yg-reg-eye svg { width: 20px; height: 20px; }
.yg-reg-eye:hover, .yg-reg-eye[aria-pressed="true"] { color: var(--yg-sea); }
.yg-reg-eye:focus-visible { outline: 3px solid var(--yg-sun-dark); outline-offset: 0; }

.yg-reg-submit { width: 100%; margin-top: 28px; }
.yg-reg-submit [hidden] { display: none; }
.yg-reg-login { margin: 20px 0 0; text-align: center; font-size: 15px; color: var(--yg-ink-soft); }
.yg-reg-login a { font-weight: 800; color: var(--yg-sea); text-decoration: none; }
.yg-reg-login a:hover { text-decoration: underline; }
.yg-reg-page a:focus-visible, .yg-reg-submit:focus-visible { outline: 3px solid var(--yg-sun-dark); outline-offset: 3px; }

/* ---------- Адаптив ---------- */
@media (max-width: 991.98px) {
    .yg-reg-layout { grid-template-columns: 1fr; }
    .yg-reg-intro { padding: 36px 32px; }
    .yg-reg-steps, .yg-reg-perks { margin-top: 24px; }
}
@media (max-width: 575.98px) {
    .yg-reg-page { padding: 16px 0 56px; }
    .yg-reg-layout { border-radius: 24px; }
    .yg-reg-intro { padding: 28px 20px; }
    .yg-reg-intro > p { font-size: 15px; }
    .yg-reg-steps, .yg-reg-perks { display: none; }
    .yg-reg-card { padding: 28px 20px; }
    .yg-reg-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .yg-reg-page * { transition: none !important; }
}
