/* Окно входа и регистрации: одна карточка по центру поверх размытой главной страницы (assets/img/auth-bg.jpg).
   Вход и регистрация через Telegram — auth-telegram.js. */
.acct-auth {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 112px 16px 56px;
}

/* размытая главная: снимок уже размыт и затемнён, сверху — виньетка, чтобы карточка читалась */
.auth-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 80% at 50% 40%, rgba(5, 5, 7, 0.05), rgba(5, 5, 7, 0.7) 100%),
    url("../img/auth-bg.jpg?v=corvus") center top / cover no-repeat,
    #060608;
}

.auth-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 7, 0.18);
}

.auth-card {
  position: relative;
  width: min(440px, 100%);
  padding: 40px 40px 30px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(255, 255, 255, 0.06), transparent 70%),
    rgba(11, 11, 14, 0.86);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 30px 80px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: acct-pop 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.auth-main,
.tg-flow {
  width: 100%;
}

.auth-main {
  display: grid;
}

.auth-main[hidden],
.tg-flow[hidden],
.tg-step[hidden] {
  display: none;
}

.auth-mark {
  justify-self: center;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, #1c1c22, #111115);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-mark img {
  display: block;
  border-radius: 50%;
}

.auth-title {
  margin: 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.auth-switch {
  margin: 10px 0 28px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.auth-link,
.auth-legal a {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-primary);
  font: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 4px;
  cursor: pointer;
  transition: text-decoration-color 0.2s;
}

.auth-link:hover,
.auth-legal a:hover {
  text-decoration-color: currentColor;
}

/* поля */
.auth-form {
  gap: 18px;
}

.auth-form label {
  gap: 9px;
}

.auth-form label > span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.auth-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.auth-form .acct-forgot {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
}

.auth-form .acct-forgot:hover {
  color: var(--text-primary);
}

.auth-form input {
  height: 50px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(4, 4, 6, 0.7);
  font-size: 0.98rem;
}

.auth-form input::placeholder {
  color: #55555e;
}

.auth-form input:focus {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
}

/* кнопки */
.auth-primary,
.auth-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  border-radius: 12px;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, opacity 0.2s;
}

.auth-primary {
  margin-top: 6px;
  border: 0;
  background: #ededf0;
  color: #0b0b0e;
}

.auth-primary::after {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s;
}

.auth-primary:hover:not(:disabled) {
  background: #fff;
}

.auth-primary:hover:not(:disabled)::after {
  transform: translateX(3px);
}

.auth-primary:disabled,
.auth-secondary:disabled {
  opacity: 0.55;
  cursor: progress;
}

.auth-secondary {
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(4, 4, 6, 0.55);
  color: var(--text-primary);
  font-weight: 500;
}

.auth-secondary svg {
  color: #5aa9e6;
}

.auth-secondary:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.auth-legal {
  margin: 20px 0 0;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.auth-legal a {
  color: var(--text-secondary);
}

.auth-form .captcha {
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(4, 4, 6, 0.7);
}

/* виджет Cloudflare Turnstile на всю ширину формы */
.captcha-cf {
  min-height: 65px;
  border-radius: 12px;
  overflow: hidden;
}

.captcha-cf[hidden],
.captcha[hidden] {
  display: none !important;
}

.tg-flow .acct-submit,
.tg-flow .tg-start {
  margin-top: 4px;
}

/* ---------- кнопка Telegram ---------- */

.tg-start {
  width: 100%;
  display: grid;
  grid-template-columns: 44px 1fr 20px;
  align-items: center;
  gap: 14px;
  padding: 14px 18px 14px 14px;
  border-radius: 18px;
  border: 1px solid #2a4a66;
  background: linear-gradient(135deg, #15283a, #101c29);
  color: #eaf4ff;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.tg-start:hover {
  border-color: #3f7fb3;
  transform: translateY(-1px);
  box-shadow: 0 12px 34px rgba(42, 138, 214, 0.22);
}

.tg-start:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.tg-start-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #2a8ad6;
  color: #fff;
}

.tg-start-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.tg-start-text b {
  font-size: 0.98rem;
  font-weight: 600;
}

.tg-start-text span {
  font-size: 0.8rem;
  color: #a9c4de;
}

.tg-start-arrow {
  color: #a9c4de;
}

.tg-start-compact {
  grid-template-columns: 40px 1fr;
  padding: 10px 16px 10px 10px;
  text-decoration: none;
}

.tg-start-compact .tg-start-icon {
  width: 40px;
  height: 40px;
}

.tg-start-error {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--error);
}

.tg-start-error:empty {
  display: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 18px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--stroke-strong);
}

.auth-divider span {
  text-transform: uppercase;
}

/* ---------- капча «Я не робот» ---------- */

.captcha {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border-radius: var(--radius-md);
  border: 1px dashed #3a3a44;
  background: rgba(26, 26, 31, 0.6);
}

.acct-form[data-mode="login"] .captcha {
  display: none;
}

.captcha-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
}

.captcha-box:focus-visible {
  outline: 2px solid var(--accent-soft);
}

.captcha-check {
  flex: none;
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 2px solid #5c5c66;
  background: #121216;
  transition: border-color 0.2s, background 0.2s;
}

.captcha[data-state="checking"] .captcha-check {
  border-color: #3a3a44;
  border-top-color: var(--accent-soft);
  border-radius: 50%;
  animation: captcha-spin 0.8s linear infinite;
}

.captcha[data-state="done"] .captcha-check {
  border-color: var(--ok);
  background: rgba(134, 239, 172, 0.14);
}

.captcha[data-state="done"] .captcha-check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 7px;
  height: 12px;
  border: solid var(--ok);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.captcha[data-state="error"] .captcha-check {
  border-color: var(--error);
}

.captcha-meta {
  font-size: 0.6rem;
  line-height: 1.3;
  text-align: right;
}

@keyframes captcha-spin {
  to { transform: rotate(360deg); }
}

/* ---------- шаги Telegram ---------- */

.tg-step {
  display: grid;
  gap: 16px;
  animation: acct-fade 0.25s ease;
}

.tg-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.2;
}

.tg-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.tg-text b {
  color: var(--text-primary);
  font-weight: 600;
}

.tg-wait {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.tg-wait[hidden] {
  display: none;
}

.tg-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ea6ef;
  box-shadow: 0 0 0 0 rgba(78, 166, 239, 0.6);
  animation: tg-pulse 1.6s ease-out infinite;
}

.tg-timer {
  margin-left: auto;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem;
}

@keyframes tg-pulse {
  to { box-shadow: 0 0 0 10px rgba(78, 166, 239, 0); }
}

.tg-back {
  justify-self: start;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.tg-back:hover {
  color: var(--text-primary);
}

.tg-chip {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  border: 1px solid #2a4a66;
  background: rgba(42, 138, 214, 0.12);
  font-size: 0.86rem;
}

.tg-chip-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #2a8ad6;
  font-weight: 700;
  font-size: 0.8rem;
}

.tg-chip-name {
  color: #eaf4ff;
}

.tg-chip-ok {
  color: var(--ok);
  font-size: 0.78rem;
}

.tg-email {
  border: 1px dashed #3a3a44;
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.tg-email summary {
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.tg-email summary span {
  color: var(--text-secondary);
}

.tg-email[open] summary {
  margin-bottom: 12px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- узкие экраны ---------- */

@media (max-width: 560px) {
  .acct-auth {
    padding: 92px 12px 32px;
  }

  .auth-card {
    padding: 30px 20px 24px;
    border-radius: 20px;
  }

  .auth-title {
    font-size: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-card,
  .tg-step {
    animation: none;
  }

  .tg-dot,
  .captcha[data-state="checking"] .captcha-check {
    animation: none;
  }
}

/* ===================== вход / регистрация v2: форма слева, хромированная иллюстрация справа ===================== */
@media (min-width: 1000px) {
  .acct-auth {
    grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
    align-items: center;
    justify-content: center;
    column-gap: clamp(48px, 7vw, 120px);
    place-items: center stretch;
    max-width: 1220px;
    margin: 0 auto;
    padding: 132px 40px 64px;
  }

  .acct-auth > .auth-card {
    grid-column: 1;
    grid-row: 1;
  }
}

/* карточка без рамки: форма просто стоит на ткани, как в журнальной вёрстке */
.acct-auth .auth-card {
  width: min(440px, 100%);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  text-align: left;
}

.acct-auth .auth-main {
  justify-items: stretch;
}

.acct-auth .auth-mark {
  justify-self: start;
  margin: 0 0 22px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0.3)) border-box;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

.acct-auth .auth-title {
  margin: 0 0 8px;
  font-family: var(--font-serif, "Cormorant Garamond", serif);
  font-size: clamp(2.1rem, 3.2vw, 2.7rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-align: left;
}

.acct-auth .auth-switch {
  margin: 0 0 30px;
  text-align: left;
  color: var(--text-secondary);
}

.acct-auth .auth-form label > span {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.01em;
}

/* поля с иконкой слева и «глазиком» у пароля */
.auth-field {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-field .auth-ico {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.42);
  pointer-events: none;
  transition: color 0.2s;
}

.acct-auth .auth-form .auth-field input {
  width: 100%;
  height: 54px;
  padding: 0 48px 0 46px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.96rem;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.acct-auth .auth-form .auth-field input:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.acct-auth .auth-form .auth-field input:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

.auth-field:focus-within .auth-ico {
  color: #fff;
}

.auth-eye {
  position: absolute;
  z-index: 1;
  right: 8px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.auth-eye svg {
  width: 18px;
  height: 18px;
}

.auth-eye:hover,
.auth-eye.is-on {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

/* главная кнопка */
.acct-auth .auth-primary {
  height: 54px;
  margin-top: 6px;
  border-radius: 15px;
  background: linear-gradient(180deg, #ffffff, #dcdde3);
  color: #0b0b0e;
  font-weight: 600;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), inset 0 1px #fff, inset 0 -2px rgba(0, 0, 0, 0.08);
}

/* разделитель */
.auth-or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 16px;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16));
}

.auth-or::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent);
}

/* Telegram: стеклянная кнопка с фирменным голубым значком */
.acct-auth .auth-tg {
  position: relative;
  justify-content: flex-start;
  gap: 14px;
  height: 62px;
  padding: 0 18px 0 12px;
  border-radius: 16px;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)) padding-box,
    linear-gradient(120deg, rgba(42, 171, 238, 0.55), rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0.25)) border-box;
  color: #f2f2f5;
  text-align: left;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.2s;
}

.acct-auth .auth-tg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 120% at 0% 50%, rgba(42, 171, 238, 0.16), transparent 70%);
  opacity: 0.6;
  transition: opacity 0.3s;
  pointer-events: none;
}

.auth-tg-badge {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(180deg, #3fc2ff, #1a8fd8);
  box-shadow: 0 6px 16px rgba(26, 143, 216, 0.45), inset 0 1px rgba(255, 255, 255, 0.45);
}

.auth-tg-text {
  position: relative;
  display: grid;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

.auth-tg-text > span {
  font-size: 0.95rem;
  font-weight: 600;
}

.auth-tg-text small {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.45);
}

.auth-tg-arrow {
  position: relative;
  flex: none;
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.25s, color 0.25s;
}

.acct-auth .auth-tg:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px -10px rgba(42, 171, 238, 0.35);
}

.acct-auth .auth-tg:hover:not(:disabled)::before {
  opacity: 1;
}

.acct-auth .auth-tg:hover .auth-tg-arrow {
  color: #fff;
  transform: translateX(4px);
}

.acct-auth .auth-legal {
  margin-top: 22px;
  text-align: left;
}

/* иллюстрация справа: корона на «Войти», рукопожатие на «Регистрации» */
.auth-art {
  display: none;
}

@media (min-width: 1000px) {
  .auth-art {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    display: grid;
    place-items: center;
    min-height: 560px;
    pointer-events: none;
  }

  .auth-art-glow {
    position: absolute;
    width: 70%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03) 45%, transparent 70%);
    filter: blur(10px);
  }

  .auth-art-img {
    grid-area: 1 / 1;
    width: min(500px, 88%);
    height: auto;
    filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.7));
    animation: auth-float 7s ease-in-out infinite;
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .auth-art-cap {
    position: absolute;
    left: 50%;
    bottom: 4px;
    margin: 0;
    transform: translateX(-50%);
    width: max-content;
    text-align: center;
    font-family: var(--font-serif, "Cormorant Garamond", serif);
    font-size: 1.5rem;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.82);
    transition: opacity 0.5s ease;
  }

  .auth-art-cap em {
    color: rgba(255, 255, 255, 0.55);
  }

  .acct-auth .is-register { opacity: 0; }
  .acct-auth:has(#acct-form[data-mode="register"]) .is-register { opacity: 1; }
  .acct-auth:has(#acct-form[data-mode="register"]) .is-login { opacity: 0; }
  .acct-auth:has(#acct-form[data-mode="register"]) .auth-art-img.is-login { transform: scale(0.94); }
}

@keyframes auth-float {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -14px; rotate: -1.5deg; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-art-img { animation: none; }
}

/* ===================== вход / регистрация: компактные размеры ===================== */
/* единая высота контролов 44px, скругления 12px, мельче текст и отступы */
.acct-auth .auth-mark {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 13px;
}

.acct-auth .auth-mark img {
  width: 24px;
  height: 24px;
}

.acct-auth .auth-title {
  font-size: clamp(1.8rem, 2.6vw, 2.2rem);
  margin-bottom: 6px;
}

.acct-auth .auth-switch {
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.acct-auth .auth-form {
  gap: 14px;
}

.acct-auth .auth-form label {
  gap: 7px;
}

.acct-auth .auth-form label > span,
.acct-auth .auth-form .acct-forgot {
  font-size: 0.78rem;
}

.acct-auth .auth-form .auth-field input {
  height: 44px;
  padding: 0 42px 0 40px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.auth-field .auth-ico {
  left: 14px;
  width: 16px;
  height: 16px;
}

.auth-eye {
  right: 5px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.auth-eye svg {
  width: 16px;
  height: 16px;
}

.acct-auth .auth-primary {
  height: 44px;
  margin-top: 4px;
  border-radius: 12px;
  font-size: 0.9rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4), inset 0 1px #fff, inset 0 -1px rgba(0, 0, 0, 0.1);
}

.auth-or {
  margin: 18px 0 14px;
  font-size: 0.7rem;
}

.acct-auth .auth-tg {
  height: 44px;
  gap: 10px;
  padding: 0 14px 0 8px;
  border-radius: 12px;
}

.auth-tg-badge {
  width: 28px;
  height: 28px;
  box-shadow: 0 3px 10px rgba(26, 143, 216, 0.4), inset 0 1px rgba(255, 255, 255, 0.45);
}

.auth-tg-badge svg {
  width: 14px;
  height: 14px;
}

.auth-tg-text > span {
  font-size: 0.9rem;
}

.auth-tg-arrow {
  width: 16px;
  height: 16px;
}

.acct-auth .auth-legal {
  margin-top: 18px;
  font-size: 0.78rem;
}

.acct-auth .auth-form .captcha {
  min-height: 44px;
  padding: 6px 12px 6px 8px;
  border-radius: 12px;
}

@media (min-width: 1000px) {
  .acct-auth {
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  }

  .acct-auth .auth-card {
    width: min(380px, 100%);
  }

  .auth-art-img {
    width: min(440px, 82%);
  }

  .auth-art-cap {
    font-size: 1.3rem;
  }
}
