/* ════════════════════════════════════════════════════════════════════
   _style_register.css — форма регистрации / страницы онбординга
════════════════════════════════════════════════════════════════════ */
@font-face {
    font-family: 'Antiquariat';
    font-display: swap;
    src: url('/fonts/TrajanPro3-Regular.woff2') format('woff2'),
         url('/fonts/TrajanPro3-Regular.woff')  format('woff'),
         url('/fonts/TrajanPro3-Regular.ttf')   format('truetype');
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body {
    min-height: 100vh;
    background-color: #e5e0d1;
    background-image: url('/img/bg.jpg');
    background-attachment: scroll;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 32px 16px 48px;
    font-family: 'Cuprum', 'Trebuchet MS', sans-serif;
    font-size: 1rem;
    color: #381a0c;
}

/* ── Карточка ───────────────────────────────────────────────────────── */
.lc-card {
    width: 100%; max-width: 560px;
    background: #faf7f0;
    border: 1px solid rgba(255,255,255,.50);
    border-radius: 20px;
    box-shadow: 0 6px 24px rgba(40,15,5,.45), 0 20px 60px rgba(40,15,5,.35);
    overflow: hidden;
}
.lc-card-top {
    background: url('/img/bg-wood.jpg') center/cover no-repeat;
    height: 130px;
    display: flex; align-items: center; justify-content: center;
}
.lc-logo { display: block; }
.lc-card-body {
    background: linear-gradient(to bottom, rgba(225,218,199,0) 0%, rgba(181,167,147,.5) 100%);
    padding: 24px 36px 32px;
}

/* ── Заголовок ──────────────────────────────────────────────────────── */
.lc-title {
    font-family: 'Antiquariat', Georgia, serif;
    font-size: 1rem;
    letter-spacing: .14em;
    color: #41210e;
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* ── Сообщения ──────────────────────────────────────────────────────── */
.lc-msg {
    border-radius: 10px; padding: 10px 14px; margin-bottom: 16px;
    font-size: .95rem; line-height: 1.5;
    font-family: 'Cuprum', sans-serif;
}
.lc-msg-error { background: #fde8e8; color: #a00; border: 1px solid rgba(192,0,0,.2); }
.lc-msg-ok    { background: #f0f5f0; color: #2a6d32; border: 1px solid rgba(42,109,50,.2); }
.lc-msg ul { margin: 6px 0 0 18px; }
.lc-msg li { margin-bottom: 3px; }

/* ── Секции формы ───────────────────────────────────────────────────── */
.lc-section {
    margin-bottom: 22px;
}
.lc-section-title {
    font-family: 'Cuprum', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #69311f;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(65,33,14,.18);
    margin-bottom: 14px;
}

/* ── Поля ───────────────────────────────────────────────────────────── */
.lc-field {
    display: flex; align-items: center;
    margin-bottom: 10px; gap: 10px;
}
.lc-field label {
    flex: 0 0 110px;
    font-family: 'Cuprum', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #5a3221;
    text-align: right;
    white-space: nowrap;
}
.lc-field label .req { color: #b22; margin-left: 2px; }
.lc-field input,
.lc-field select {
    flex: 1; padding: 8px 12px; background: #fff;
    border: 1px solid rgba(65,33,14,.28); border-radius: 10px;
    font-family: 'Cuprum', sans-serif; font-size: 1rem; color: #1e120a;
    transition: border-color .15s, box-shadow .15s;
    box-shadow: inset 0 1px 3px rgba(65,33,14,.07); min-width: 0;
}
.lc-field input:focus,
.lc-field select:focus {
    outline: none; border-color: #69311f;
    box-shadow: 0 0 0 3px rgba(105,49,31,.12), inset 0 1px 3px rgba(65,33,14,.06);
}
.lc-field input.is-invalid {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192,57,43,.1);
}
.lc-field input.is-valid {
    border-color: #27ae60;
}
.lc-field-hint {
    flex: 1;
    margin-left: 120px;
    font-size: .85rem;
    color: #8a6a56;
    margin-top: -6px;
    margin-bottom: 4px;
}
.lc-field-err {
    flex: 1;
    margin-left: 120px;
    font-size: .85rem;
    color: #c0392b;
    margin-top: -6px;
    margin-bottom: 4px;
    display: none;
}
.lc-field-err.visible { display: block; }

/* ── Пароль — индикатор силы ────────────────────────────────────────── */
.pw-strength {
    margin-left: 120px; margin-top: -6px; margin-bottom: 4px;
    height: 4px; background: #e0d8ca; border-radius: 2px; overflow: hidden;
}
.pw-strength-bar {
    height: 100%; width: 0; border-radius: 2px;
    transition: width .3s, background .3s;
}

/* ── Чекбоксы согласия ──────────────────────────────────────────────── */
.lc-checks { margin: 18px 0 6px; }
.lc-check {
    display: flex; align-items: flex-start; gap: 10px;
    margin-bottom: 10px;
    font-size: 1rem;
    font-family: 'Cuprum', sans-serif;
    color: #3d1f0e;
    line-height: 1.4;
    cursor: pointer;
}
.lc-check input[type=checkbox] {
    flex: 0 0 18px; width: 18px; height: 18px;
    margin-top: 2px; cursor: pointer;
    accent-color: #69311f;
}
.lc-check a { color: #9d2104; text-decoration: none; }
.lc-check a:hover { text-decoration: underline; }

/* ── Кнопка ─────────────────────────────────────────────────────────── */
.lc-btn {
    display: block; width: 100%; margin-top: 24px; padding: 14px 16px;
    cursor: pointer;
    background: linear-gradient(to bottom, #41210e 0%, #69311f 50%, #41210e 100%);
    border-radius: 15px; border: 1px solid rgba(255,255,255,.6);
    box-shadow: 0 0 1px 1px rgba(0,0,0,.5);
    color: #fff; font-size: 1rem; font-weight: bold;
    letter-spacing: .05rem; text-shadow: 0 0 2px #000;
    font-family: 'Cuprum', sans-serif; transition: opacity .15s;
}
.lc-btn:hover { opacity: .88; }
.lc-btn:active { opacity: .95; transform: translateY(1px); }
.lc-btn:disabled { opacity: .55; cursor: not-allowed; }

/* ── Ссылки под формой ───────────────────────────────────────────────── */
.lc-links {
    margin-top: 16px; text-align: center;
    font-family: 'Cuprum', sans-serif; font-size: 1rem; color: #6b4535;
}
.lc-links a { color: #9d2104; text-decoration: none; }
.lc-links a:hover { text-decoration: underline; }

/* ── Username availability indicator ────────────────────────────────── */
.avail-ok  { color: #27ae60; font-size: .88rem; margin-left: 6px; }
.avail-err { color: #c0392b; font-size: .88rem; margin-left: 6px; }
.avail-chk { color: #888;    font-size: .88rem; margin-left: 6px; }

/* ── Страница "Проверьте почту" / подтверждение ─────────────────────── */
.lc-info-icon {
    font-size: 3rem; text-align: center; margin-bottom: 12px;
}
.lc-info-text {
    font-family: 'Cuprum', sans-serif;
    font-size: 1rem; line-height: 1.65;
    color: #3d1f0e; text-align: center;
    margin-bottom: 10px;
}
.lc-info-text strong { color: #69311f; }

/* ── Онбординг ───────────────────────────────────────────────────────── */
.ob-step {
    display: flex; align-items: flex-start; gap: 14px;
    margin-bottom: 18px; padding: 14px 16px;
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(65,33,14,.12);
    border-radius: 12px;
}
.ob-num {
    flex: 0 0 34px; height: 34px;
    background: linear-gradient(to bottom, #41210e, #69311f);
    border-radius: 50%;
    color: #fff; font-family: 'Antiquariat', serif;
    font-size: .95rem; display: flex; align-items: center; justify-content: center;
}
.ob-body { flex: 1; }
.ob-step-title {
    font-family: 'Cuprum', sans-serif;
    font-size: 1rem; font-weight: 700;
    color: #41210e; margin-bottom: 4px;
}
.ob-step-desc {
    font-family: 'Cuprum', sans-serif;
    font-size: 1rem; color: #5a3221; line-height: 1.45;
}
.ob-step-link {
    display: inline-block; margin-top: 6px;
    font-size: 1rem; color: #9d2104; text-decoration: none;
}
.ob-step-link:hover { text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    body { padding: 20px 12px 40px; align-items: flex-start; }
    .lc-card { max-width: 100%; }
    .lc-card-top { display: none; }
    .lc-card-body { padding: 18px 18px 24px; }
    .lc-field { flex-wrap: wrap; }
    .lc-field label { flex: 0 0 100%; text-align: left; margin-bottom: 2px; }
    .lc-field input, .lc-field select { flex: 1 1 100%; }
    .lc-field-hint, .lc-field-err, .pw-strength { margin-left: 0; }
    .lc-section-title { font-size: .95rem; }
}
