/* /login: «Вход» and «Регистрация» (partials/signUp) in the style of the account pages (orders.css, profile.css) */

.lfl {
    --ink: #111;
    --muted: #6f6f6f;
    --line: #e9e6e1;
    --soft: #f7f5f2;
    --gold: #b08d57;
    --red: #a3141f;
    font-family: 'CenturyGothic', Arial, Helvetica, sans-serif;
    color: var(--ink);
    font-size: 15px;
}
.lfl * { font-size: inherit; }  /* the theme sets «* { font-size: 20px }» */
.lfl a:hover { text-decoration: none; }
.lfl.mall-signup { width: 100%; max-width: 852px; margin: 0 auto; padding: 0 16px; }
.lfl .mall-signup__signup form { display: grid; gap: 18px; }
.lfl-card + .lfl-card { margin-top: 18px; }
.lfl .mall-signup__signup form > .lfl-card + .lfl-card { margin-top: 0; }
.lfl .mall-signup__signin { max-width: 460px; margin: 0 auto; padding: 0; border: 0; }
.lfl .mall-signup__signin.hidden { display: none; }
.lfl .mall-signup__signup { max-width: 820px; margin: 0 auto; }

/* cards */
.lfl-card { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.lfl-card--soft { background: var(--soft); border-color: var(--soft); }
.lfl-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 22px 0; }
.lfl-card__title { font-size: 17px; }
.lfl-card__hint { font-size: 13px; color: var(--muted); }
.lfl-card__head .lfl-card__hint { text-align: right; }
.lfl-card__body { display: grid; gap: 16px; padding: 16px 22px 22px; }
.lfl-join { grid-template-columns: 1fr auto; align-items: center; padding: 18px 22px; }
.lfl-join .lfl-card__hint { margin-top: 3px; }

.lfl-intro { text-align: center; }
.lfl-intro__title { margin: 0 0 6px; font-size: 22px; font-weight: normal; }
.lfl-intro__text { margin: 0; font-size: 14px; color: var(--muted); }
.lfl-intro__text a { color: var(--ink); border-bottom: 1px solid currentColor; }
.lfl-subtitle { margin-top: 4px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* fields (ours and the address partial's .mall-form-control) */
.lfl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.lfl-field, .lfl .mall-form-control { display: flex; flex-direction: column; gap: 6px; min-width: 0; max-width: none; margin: 0; }
.lfl-field--wide { grid-column: 1 / -1; }
.lfl-field > label, .lfl .mall-form-control > label { margin: 0; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lfl-field input, .lfl .mall-form-control input, .lfl .mall-form-control textarea, .lfl .mall-form-control select {
    width: 100%; height: 44px; padding: 0 14px;
    border: 1px solid var(--line); border-radius: 6px; background: var(--soft);
    font-size: 15px; color: var(--ink); outline: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.lfl .mall-form-control textarea { height: 88px; padding: 10px 14px; resize: vertical; }
.lfl-field input:hover, .lfl .mall-form-control input:hover, .lfl .mall-form-control textarea:hover { border-color: #d8d2c8; }
.lfl-field input:focus, .lfl .mall-form-control input:focus, .lfl .mall-form-control textarea:focus { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px rgba(17,17,17,.06); }
.lfl-error, .lfl .mall-form-control [data-validate-for] { font-size: 12px; color: var(--red); }
.lfl-error:empty, .lfl .mall-form-control [data-validate-for]:empty { display: none; }
.lfl-address { display: grid; gap: 16px; }
.lfl .mall-two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.lfl .country-selector { display: none; }
/* city select (Tom Select, partials/site/city-select): one line, 44px, the same box as the inputs (sign up on /login,
   the checkout); the list opens over the cards below — the cards clip their content otherwise */
.lfl .mall-form-control .ts-wrapper.js-city-select .ts-control,
.lfl .mall-form-control .ts-wrapper.js-city-select.focus .ts-control,
.lfl .mall-form-control .ts-wrapper.js-city-select.dropdown-active .ts-control {
    display: flex; flex-wrap: nowrap; align-items: center; height: 44px; min-height: 44px; padding: 0 38px 0 14px;
    border: 1px solid var(--line); border-radius: 6px; font-size: 15px; color: var(--ink);
    background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%238c8c8c' stroke-width='1.4'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") right 14px center / 11px no-repeat;
}
.lfl .mall-form-control .ts-wrapper.js-city-select.focus .ts-control { border-color: var(--ink); background-color: #fff; box-shadow: 0 0 0 3px rgba(17,17,17,.06); }
.lfl .ts-wrapper.js-city-select .ts-control > .item { flex: none; }
.lfl .ts-wrapper.js-city-select .ts-control input { flex: 1 1 auto; min-width: 0 !important; height: auto; padding: 0; border: 0; background: none; box-shadow: none; }
.lfl .ts-wrapper.js-city-select.has-items.input-active .ts-control > .item { display: none; }
.lfl-card:has(.js-city-select) { overflow: visible; }
.lfl .ts-wrapper.js-city-select { position: relative; z-index: 5; }
.lfl .mall-form-control .ts-dropdown {
    z-index: 20; margin-top: 4px; border: 1px solid var(--line); border-radius: 6px; font-size: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08); overflow: hidden;
}
.lfl .ts-dropdown .option { padding: 9px 14px; font-size: 14px; }
/* «Город» and «Страна» side by side (addressform of signUp and quickCheckout); the country select with an arrow */
.lfl .lfk-city-country { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.lfl .mall-form-control select.lfk-select {
    padding-right: 38px; cursor: pointer; -webkit-appearance: none; appearance: none;
    background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%238c8c8c' stroke-width='1.4'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") right 14px center / 11px no-repeat;
}
.lfl .mall-form-control select.lfk-select:focus { border-color: var(--ink); background-color: #fff; box-shadow: 0 0 0 3px rgba(17,17,17,.06); }
@media (max-width: 767px) {
    .lfl .lfk-city-country { grid-template-columns: 1fr; }
}
.lfl .ts-dropdown .active { background: var(--soft); color: var(--ink); }

/* radio chips (Пол) */
.lfl-choice { display: flex; gap: 8px; }
.lfl-choice label { margin: 0; cursor: pointer; }
.lfl-choice label { position: relative; }
.lfl .lfl-choice input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.lfl-choice span { display: inline-flex; align-items: center; height: 40px; padding: 0 20px; border: 1px solid var(--line); border-radius: 20px; font-size: 14px; color: var(--muted); transition: color .2s, background-color .2s, border-color .2s, box-shadow .2s; }
.lfl-choice label:hover span { color: var(--ink); border-color: #d8d2c8; }
.lfl-choice input:checked + span { color: #fff; background: var(--ink); border-color: var(--ink); }
.lfl-choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(17,17,17,.12); }

/* checkboxes */
.lfl-check { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 14px; line-height: 1.4; color: var(--ink); cursor: pointer; }
.lfl-check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
.lfl-check a { color: var(--ink); border-bottom: 1px solid var(--line); }
.lfl-check a:hover { border-color: var(--ink); color: var(--ink); }
.lfl-agree { display: grid; gap: 10px; padding: 0 4px; }

/* buttons */
.lfl-actions { display: flex; align-items: center; gap: 22px; margin-top: 4px; }
.lfl-actions--end { justify-content: flex-end; }
.lfl-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 200px; height: 46px; padding: 0 28px;
    border: 1px solid var(--ink); border-radius: 6px; background: var(--ink); color: #fff;
    font-size: 13px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
    transition: background .2s, color .2s, opacity .2s;
}
.lfl-btn:hover { background: #333; }
.lfl-btn:disabled { opacity: .35; cursor: default; background: var(--ink); }
.lfl-btn--outline { width: auto; min-width: 0; margin: 0; background: transparent; color: var(--ink); }
.lfl-btn--outline:hover { background: var(--ink); color: #fff; }
/* a link styled as a button hovers like the buttons (Bootstrap's «a:hover» would turn its text blue and underline it) */
a.lfl-btn, a.lfl-btn:hover, a.lfl-btn:focus { color: #fff; text-decoration: none; }
a.lfl-btn--outline { color: var(--ink); }
a.lfl-btn--outline:hover, a.lfl-btn--outline:focus { color: #fff; }
.lfl-link { font-size: 14px; color: var(--muted); }
.lfl-link:hover { color: var(--ink); }

@media (max-width: 767px) {
    .lfl { font-size: 14px; }
    .lfl-card__head { flex-direction: column; gap: 3px; padding: 16px 16px 0; }
    .lfl-card__head .lfl-card__hint { text-align: left; }
    .lfl-card__body { padding: 14px 16px 18px; }
    .lfl-grid, .lfl .mall-two-fields { grid-template-columns: 1fr; gap: 14px; }
    .lfl-join { grid-template-columns: 1fr; padding: 16px; }
    .lfl-actions { flex-direction: column; align-items: stretch; gap: 14px; text-align: center; }
    .lfl-btn { width: 100%; }
}

/* address partial: the zip is hidden (filled with «-»), so the city takes the whole row; an empty country/state row takes no space */
.lfl-address .mall-two-fields { grid-template-columns: 1fr; }
.lfl [id^="countryState_"]:not(:has(.mall-form-control:not(.country-selector))) { display: none; }
.lfl .lfl-check a, .lfl .mall-signup-terms .agreement-cart { font-size: inherit; }
.lfl .mall-signup-terms { width: auto; margin: 0; }
.lfl .ts-wrapper.js-city-select .ts-control, .lfl .ts-wrapper.js-city-select .ts-control input { font-size: 15px !important; }

/* /reset_password (partials/resetPassword): one card */
.lfl--narrow { width: 100%; max-width: 552px; margin: 0 auto; padding: 0 16px; }
.lfl-text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink); }
.lfl-text--muted { font-size: 12px; color: var(--muted); margin-top: -6px; }
.lfl [hidden] { display: none !important; }

/* Phones (2026-12-01): 16px in the fields — with less, Safari on an iPhone zooms the page in when a field is tapped */
@media (max-width: 767px) {
    .lfl input:not([type="checkbox"]):not([type="radio"]), .lfl select, .lfl textarea,
    .lfp input:not([type="checkbox"]):not([type="radio"]), .lfp select, .lfp textarea,
    .lfl .ts-control, .lfl .ts-control input, .lfp .ts-control, .lfp .ts-control input { font-size: 16px !important; }
}
