/*
 * Přihlášení, registrace a zapomenuté heslo (.teno-auth) – karty v barvách teno.cz jako katalog:
 * modrá #0184c2, tmavá #1c3761, odkazy #0a5c7a, linky #d5e5eb, podklad #f3f8fa, tlačítko #55c8dc → #0184c2.
 */
.teno-auth .page-title-wrapper .page-title { margin: 0 0 22px; color: #1c3761; font-size: 28px; font-weight: 800; }
.teno-auth .column.main { padding-bottom: 40px; }

.teno-auth__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; max-width: 1040px; }
.teno-auth__grid--register { grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); align-items: start; }
.teno-auth__grid--single { grid-template-columns: minmax(0, 560px); }
/* Luma dává bloky přihlášení vedle sebe přes float a šířku 50 % */
.teno-auth .login-container .block { float: none; width: auto; margin: 0; }
.teno-auth .login-container::before, .teno-auth .login-container::after { display: none; }

.teno-auth__card { padding: 28px; border: 1px solid #d5e5eb; border-radius: 12px; background: #fff; box-shadow: 0 7px 20px rgba(20, 70, 91, .08); box-sizing: border-box; }
.teno-auth__card--accent { background: linear-gradient(180deg, #f3f8fa 0, #eaf3f6 100%); }
.teno-auth__card h3 { margin: 0 0 14px; color: #1c3761; font-size: 18px; font-weight: 700; }

.teno-auth__head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid #e4edf1; }
.teno-auth__head h2 { margin: 0 0 4px; color: #1c3761; font-size: 21px; font-weight: 800; }
.teno-auth__head p { margin: 0; color: #5d7480; font-size: 14px; line-height: 1.5; }
.teno-auth__icon { display: flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(145deg, #08a8ce, #0679ab); }
.teno-auth__icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.teno-auth__req { color: #d32f2f; font-style: normal; }

.teno-auth .fieldset { margin: 0 0 18px; padding: 0; border: 0; }
.teno-auth .fieldset > .legend { float: none; width: 100%; margin: 0 0 14px; padding: 0 0 8px; border-bottom: 1px solid #e4edf1; color: #0a5c7a; font-size: 15px; font-weight: 700; }
.teno-auth .fieldset > .legend + br { display: none; }
.teno-auth .fieldset > .field { margin: 0 0 16px; }
/* Luma u .fieldset > .field:not(.choice) staví popisek vedle pole (šířka 25,8 %) – zde vždy nad polem */
.teno-auth .fieldset > .field:not(.choice) > .label,
.teno-auth .fieldset > .fields > .field:not(.choice) > .label,
.teno-auth .field-name-firstname > .label, .teno-auth .field-name-lastname > .label { display: block; float: none; width: auto; margin: 0 0 6px; padding: 0; text-align: left; color: #243c4b; font-size: 13px; font-weight: 700; }
.teno-auth .fieldset > .field:not(.choice) > .control,
.teno-auth .fieldset > .fields > .field:not(.choice) > .control { float: none; width: 100%; }
.teno-auth .fieldset > .field.required > .label::after, .teno-auth .fieldset > .fields > .field.required > .label::after { content: '*'; margin: 0 0 0 3px; color: #d32f2f; font-size: 13px; }
.teno-auth .fieldset.create.info .field-name-firstname,
.teno-auth .fieldset.create.info .field-name-lastname { display: inline-block; width: calc(50% - 8px); vertical-align: top; }
.teno-auth .fieldset.create.info .field-name-firstname { margin-right: 12px; }
.teno-auth input.input-text, .teno-auth input[type="email"], .teno-auth input[type="password"], .teno-auth input[type="text"], .teno-auth select { height: 44px; padding: 0 13px; border: 1px solid #b9c6cc; border-radius: 6px; background: #fff; font-size: 15px; box-shadow: none; transition: border-color .15s ease, box-shadow .15s ease; }
.teno-auth input.input-text:focus, .teno-auth input[type="email"]:focus, .teno-auth input[type="password"]:focus, .teno-auth select:focus { border-color: #0184c2; box-shadow: 0 0 0 3px rgba(1, 132, 194, .15); }
.teno-auth input.mage-error { border-color: #d32f2f; }
.teno-auth div.mage-error { margin-top: 6px; color: #d32f2f; font-size: 12px; }

.teno-auth__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.teno-auth__pair > .field { margin: 0; }
.teno-auth__hint { margin: 10px 0 12px; color: #71808b; font-size: 12px; line-height: 1.5; }
.teno-auth .password-strength-meter { margin-top: 6px; padding: 6px 10px; border-radius: 5px; background: #f3f8fa; color: #5d7480; font-size: 12px; }
.teno-auth .password-weak .password-strength-meter::before { background-color: #ffafae; }
.teno-auth .password-medium .password-strength-meter::before { background-color: #ffd6b3; }
.teno-auth .password-strong .password-strength-meter::before { background-color: #c5eeac; }
.teno-auth .password-very-strong .password-strength-meter::before { background-color: #81b562; }

.teno-auth__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: -4px 0 14px; }
.teno-auth__row .field.choice { margin: 0; }
.teno-auth .field.choice label { color: #44535b; font-size: 13px; font-weight: 400; }
.teno-auth a.action.remind, .teno-auth__back, .teno-auth__note a { color: #0a5c7a; font-size: 13px; font-weight: 600; }
.teno-auth__newsletter { margin: 4px 0 14px; padding: 12px 14px; border: 1px solid #d5e5eb; border-radius: 8px; background: #f3f8fa; }
.teno-auth__newsletter label { font-size: 13px; }

.teno-auth .actions-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 6px 0 0; padding: 0; }
.teno-auth .actions-toolbar::before, .teno-auth .actions-toolbar::after { display: none; }
.teno-auth .actions-toolbar > .primary, .teno-auth .actions-toolbar > .secondary { float: none; margin: 0; }
.teno-auth .action.primary.teno-auth__btn { display: inline-flex; align-items: center; justify-content: center; min-width: 200px; height: 46px; padding: 0 28px; border: 0; border-radius: 7px; background: linear-gradient(#55c8dc, #0184c2); color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; box-shadow: 0 4px 12px rgba(1, 132, 194, .25); transition: filter .15s ease, transform .15s ease; }
.teno-auth .action.primary.teno-auth__btn:hover { filter: brightness(1.06); transform: translateY(-1px); color: #fff; }
.teno-auth .action.primary.teno-auth__btn--ghost { border: 2px solid #0184c2; background: #fff; color: #0184c2; box-shadow: none; }
.teno-auth .action.primary.teno-auth__btn--ghost:hover { background: #0184c2; color: #fff; }

.teno-auth__benefits { margin: 0 0 22px; padding: 0; list-style: none; }
.teno-auth__benefits li { position: relative; margin: 0 0 11px; padding-left: 30px; color: #344b57; font-size: 14px; line-height: 1.5; }
.teno-auth__benefits li::before { content: ''; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: #297842 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.teno-auth__note { margin: 16px 0 0; color: #71808b; font-size: 12px; line-height: 1.55; }
.teno-auth__contact { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid #d5e5eb; border-radius: 10px; background: #fff; font-size: 13px; }
.teno-auth__contact strong { color: #1c3761; }
.teno-auth__contact a { color: #0184c2; font-weight: 700; }
.teno-auth__contact span { color: #71808b; font-size: 12px; }

/* Captcha */
.teno-auth .captcha .control.captcha-image { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.teno-auth .captcha .action.reload { margin: 0; padding: 7px 12px; border: 1px solid #b9c6cc; border-radius: 6px; background: #fff; color: #0a5c7a; font-size: 12px; box-shadow: none; }

@media (max-width: 767px) {
    .teno-auth__grid, .teno-auth__grid--register { grid-template-columns: 1fr; }
    .teno-auth__card { padding: 20px 16px; }
    .teno-auth__pair { grid-template-columns: 1fr; gap: 0; }
    .teno-auth__pair > .field { margin-bottom: 16px; }
    .teno-auth .fieldset.create.info .field-name-firstname,
    .teno-auth .fieldset.create.info .field-name-lastname { display: block; width: 100%; margin-right: 0; }
    .teno-auth .action.primary.teno-auth__btn { width: 100%; }
}
