/* Тема: вхід, реєстрація, відновлення пароля */
.tb-auth-page { max-width: none; padding-top: 24px; }
.tb-auth { display: grid; justify-items: center; }
.tb-auth-card { width: min(480px, 100%); padding: clamp(18px, 4vw, 32px); border-radius: 22px; background: #fff; border: 2px solid var(--line); box-shadow: 0 6px 0 var(--line); }
.tb-auth-card-text { text-align: center; display: grid; gap: 12px; justify-items: center; }
.tb-auth-card-text p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.tb-auth-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff8e1; color: var(--orange-d); }
.tb-auth-ico svg { width: 30px; height: 30px; }
body.tb-chrome .tb-auth-h1, .tb-auth-h1 { margin: 0 0 16px; text-align: center; font: 800 clamp(22px, 3vw, 28px)/1.2 var(--f-display); color: var(--ink); }
.tb-auth-student { width: 100%; margin-bottom: 16px; }
.tb-auth-social { display: grid; gap: 8px; }
.tb-auth-social .tb-btn { width: 100%; }
.tb-auth-social .fa { font-size: 18px; color: #1877f2; }
.tb-auth-social .google-icon { width: 18px; height: 18px; }
.tb-auth-or { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: var(--ink-3); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.tb-auth-or::before, .tb-auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.tb-auth .form-group { margin-bottom: 14px; }
.tb-auth .control-label { display: block; margin-bottom: 6px; font: 700 13.5px/1.2 var(--f-body); color: var(--ink-2); }
.tb-auth .form-control { min-height: 48px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: none; font: 500 15px/1.3 var(--f-body); color: var(--ink); height: auto; }
.tb-auth .form-control:focus { border-color: var(--sky); background: #fff; box-shadow: none; }
.tb-auth .has-error .form-control { border-color: var(--coral); }
.tb-auth .help-block { margin: 4px 2px 0; font-size: 12.5px; color: var(--coral-d, #c62828); }
.tb-auth .help-block:empty { display: none; }
.tb-auth .password-toggle { top: 50%; transform: translateY(-50%); }
.tb-auth-row { display: flex; justify-content: flex-end; margin: -4px 0 12px; }
.tb-auth-link { color: var(--ink-2) !important; font-weight: 700; text-decoration: underline; text-decoration-color: var(--go); text-underline-offset: 3px; cursor: pointer; }
.tb-auth-link:hover { color: var(--orange-d) !important; }
.tb-auth-submit { width: 100%; }
.tb-auth-foot { text-align: center; font-size: 14px; color: var(--ink-2); }
.tb-auth-help { margin: 0 0 14px; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.tb-auth-help a { color: var(--ink-2); font-weight: 700; }
.tb-auth .tb-note { text-align: left; }
.tb-auth .tb-note a { color: var(--ink); font-weight: 700; }
/* класичні правила .account-page (вирівнювання, вага заголовків, рамки соцкнопок) — перекриваємо */
.tb-auth { width: 100%; }
.tb-auth-card { margin: 0 auto; }
.tb-auth .tb-auth-h1 { font-family: var(--f-display) !important; font-weight: 800 !important; font-size: clamp(22px, 3vw, 28px) !important; line-height: 1.2 !important; color: var(--ink) !important; margin: 0 0 16px !important; }
.tb-auth-social .tb-btn, .tb-auth-social .tb-btn:hover { border-color: var(--line-2) !important; color: var(--ink) !important; background: #fff; }
.tb-auth-social .tb-btn:hover { border-color: var(--ink) !important; }
.tb-auth .tb-btn { text-decoration: none !important; }

/* класичні .account-registration задають фіксовану ширину — картка завжди вміщається в екран */
.tb-auth .tb-auth-card { width: min(480px, 100%) !important; max-width: 100%; box-sizing: border-box; }
.tb-auth-social .tb-btn, .tb-auth-social .tb-btn:hover { border-radius: 12px !important; min-height: 46px; }
.tb-auth { grid-template-columns: minmax(0, 1fr); }
.tb-auth-card { min-width: 0; }
.tb-auth-social .tb-btn { white-space: normal; text-align: center; }
/* кнопки входу: однакова висота, однакові іконки (22px) і відступи */
.tb-auth-student, .tb-auth-social .tb-btn { height: 48px; min-height: 48px; padding-top: 0; padding-bottom: 0; display: flex; align-items: center; justify-content: center; gap: 10px; }
.tb-auth-student { margin-bottom: 10px; }
.tb-auth-social { gap: 10px; }
.tb-auth-social .fa { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin: 0; font-size: 22px; line-height: 1; color: #1877f2; }
.tb-auth-social .google-icon { width: 22px !important; height: 22px !important; margin: 0; }
@media (max-width: 420px) { .tb-auth-student, .tb-auth-social .tb-btn { height: auto; min-height: 48px; padding-top: 6px; padding-bottom: 6px; font-size: 14px; } }
/* класичні .auth-link-* мають margin-bottom: 20px — у сітці з gap це подвоює відступ */
.tb-auth-social .auth-link-facebook, .tb-auth-social .auth-link-google, .tb-auth-social .tb-btn { margin: 0 !important; }
