/* =========================================================
   Вхід, реєстрація, відновлення доступу:
   ліворуч форма на білому, праворуч синій студійний фон з прикладом
   ========================================================= */
.auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* ---------- Колонка з формою ---------- */
.auth__main { display: flex; flex-direction: column; min-width: 0; padding: 22px clamp(20px, 5vw, 64px) 26px; }
.auth__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.auth__back { padding: 8px 10px; border-radius: var(--r-s); color: var(--ink-2); font-size: 0.9rem; font-weight: 650; text-decoration: none; }
@media (hover: hover) { .auth__back:hover { color: var(--ink); } }
.auth__card { width: min(100%, 400px); margin: auto; padding: clamp(32px, 6vh, 56px) 0; }
.auth__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); letter-spacing: -0.035em; line-height: 1.12; }
.auth__subtitle { margin-top: 10px; color: var(--ink-2); font-size: 0.96rem; }
.auth__subtitle a, .auth__links a, .auth .check a { color: var(--blue); font-weight: 700; text-underline-offset: 3px; }
.auth__bonus { margin-top: 14px; padding: 10px 12px; border-radius: var(--r-s); background: var(--blue-tint); color: var(--blue-deep); font-size: 0.9rem; font-weight: 650; }
.auth__oauth { margin-top: 26px; }
.auth__oauth:empty { display: none; }
.btn--oauth { width: 100%; background: var(--paper); border-color: var(--line-strong); color: var(--ink); }
@media (hover: hover) { .btn--oauth:hover { border-color: var(--ink); } }
.auth__oauth-note { margin-top: 10px; font-size: 0.8rem; line-height: 1.5; color: var(--ink-3); text-align: center; }
.auth__oauth-note a { color: var(--ink-2); }
.auth__divider { display: flex; align-items: center; gap: 14px; margin: 22px 0 4px; color: var(--ink-3); font-size: 0.82rem; }
.auth__divider::before, .auth__divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth__form { display: grid; gap: 18px; margin-top: 26px; }
.auth__form .field + .field { margin-top: 0; }
.auth__form .btn { margin-top: 6px; }
.auth__links { display: flex; justify-content: center; gap: 8px; margin-top: 22px; font-size: 0.92rem; color: var(--ink-2); text-align: center; flex-wrap: wrap; }
.auth__foot { display: flex; gap: 6px 18px; flex-wrap: wrap; margin: 0; font-size: 0.82rem; color: var(--ink-3); }
.auth__foot a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
@media (hover: hover) { .auth__foot a:hover { color: var(--blue); } }
.auth .field__link { font-size: 0.86rem; font-weight: 700; color: var(--blue); text-decoration: none; }
@media (hover: hover) { .auth .field__link:hover { text-decoration: underline; } }

/* Поле коду підтвердження */
.input--code { font-size: 1.6rem; font-weight: 700; letter-spacing: 0.45em; text-align: center; font-variant-numeric: tabular-nums; }
.input--code::placeholder { color: var(--line-strong); }
.link--button { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; cursor: pointer; }

/* Індикатор надійності пароля */
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.strength i { height: 4px; border-radius: 2px; background: var(--line); transition: background-color 200ms ease; }
.strength[data-score="1"] i:nth-child(-n + 1) { background: #d4483a; }
.strength[data-score="2"] i:nth-child(-n + 2) { background: #d98c1f; }
.strength[data-score="3"] i:nth-child(-n + 3) { background: var(--blue); }
.strength[data-score="4"] i { background: var(--ok); }

/* Пастка для ботів */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Стан успіху */
.auth__done { display: grid; justify-items: start; gap: 14px; margin-top: 18px; }
.auth__done p { color: var(--ink-2); }
.auth__done-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--r-m); background: var(--blue-tint); color: var(--blue); }
.auth__done-icon svg { width: 24px; height: 24px; }
.auth__dev-note { padding: 10px 12px; border-radius: var(--r-s); background: var(--studio); font-size: 0.84rem; color: var(--ink-2); }

/* ---------- Синій студійний фон праворуч ---------- */
.auth__aside {
  display: grid; place-items: center;
  padding: clamp(32px, 5vw, 72px);
  background: var(--blue);
  color: #fff;
}
.auth__aside-inner { width: min(100%, 470px); }
.auth__aside-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 1rem + 1.3vw, 2.1rem); line-height: 1.12; letter-spacing: -0.035em; text-wrap: balance; }
.auth__pair { display: grid; grid-template-columns: 0.8fr 1fr; align-items: end; gap: 16px; margin-top: 34px; }
.auth__pair figure { margin: 0; }
.auth__pair img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--r-s);
  box-shadow: 0 2px 4px rgba(8, 16, 60, 0.25), 0 26px 50px -22px rgba(8, 16, 60, 0.7);
}
.auth__pair figcaption { margin-top: 10px; font-size: 0.86rem; font-weight: 600; color: rgba(255, 255, 255, 0.86); }
.auth__perks { display: grid; gap: 10px; margin-top: 30px; }
.auth__perks li { position: relative; padding-left: 28px; line-height: 1.5; color: rgba(255, 255, 255, 0.9); }
.auth__perks li::before {
  content: ""; position: absolute; left: 0; top: 0.2em;
  width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.5 5 5L19.5 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .auth__aside { display: none; }
  .auth__card { padding-top: 40px; }
}
