/* Страницы входа и регистрации в стиле лендинга Bleff (landing/src/style.css). */
:root {
  --ink: #0b0405;
  --wine: #2a070c;
  --bordeaux: #4d0a13;
  --cream: #f0e4c0;
  --cream-dim: rgba(240, 228, 192, 0.66);
  --cream-faint: rgba(240, 228, 192, 0.14);
  --gold: #c9a063;
  --gold-hi: #ecd3a0;
  --line: rgba(201, 160, 99, 0.45);
  --error: #f08a80;
  --f-script: "Pinyon Script", cursive;
  --f-serif: "Cormorant Garamond", "Times New Roman", serif;
  --f-sans: "Source Sans 3", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

body.auth {
  margin: 0;
  min-height: 100vh;
  display: flex; flex-direction: column;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, #3d0710 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 20% 100%, #2a050b 0%, transparent 70%),
    var(--ink);
  color: var(--cream);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.auth a { color: inherit; }

.auth-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid var(--cream-faint);
  background: rgba(11, 4, 5, 0.8);
}
.auth-lockup { text-decoration: none; line-height: 1; }
.auth-lockup b { display: block; font-family: var(--f-serif); font-weight: 500; font-size: 26px; letter-spacing: -0.02em; }
.auth-lockup span { display: block; font-family: var(--f-script); font-size: 26px; margin: -10px 0 0 6px; white-space: nowrap; }
.auth-back { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream-dim); text-decoration: none; }
.auth-back:hover { color: var(--gold-hi); }

.auth-main { flex: 1; display: grid; place-items: center; padding: 48px 16px 64px; }

.auth-card {
  position: relative;
  width: min(460px, 100%);
  padding: 44px clamp(22px, 5vw, 44px) 36px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(42, 7, 12, 0.92), rgba(20, 5, 7, 0.95));
  box-shadow: 0 40px 90px -40px #000, inset 0 0 0 6px rgba(11, 4, 5, 0.6), inset 0 0 0 7px rgba(201, 160, 99, 0.18);
  text-align: center;
}
.auth-logo { font-family: var(--f-script); font-size: 64px; line-height: 0.9; color: var(--gold-hi); }
.auth-logo small { display: block; font-size: 30px; color: var(--gold); margin-top: 2px; }
.auth-divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 16px 0 22px; color: var(--gold); font-size: 14px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; width: 70px; background: linear-gradient(90deg, transparent, var(--gold)); }
.auth-divider::after { transform: scaleX(-1); }

.auth-title { margin: 0 0 8px; font-family: var(--f-serif); font-weight: 500; font-size: 32px; line-height: 1.1; }
.auth-lead { margin: 0 0 24px; color: var(--cream-dim); font-size: 15px; }

/* Tabs */
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin-bottom: 24px; border: 1px solid var(--cream-faint); border-radius: 999px; }
.auth-tabs a {
  padding: 10px 8px; border-radius: 999px;
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; color: var(--cream-dim);
  transition: background 0.3s, color 0.3s;
}
.auth-tabs a:hover { color: var(--cream); }
.auth-tabs a.is-active { background: rgba(201, 160, 99, 0.16); color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--line); }

/* Form */
.auth-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.auth-field {
  display: flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(10, 2, 3, 0.4);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.auth-field:focus-within { border-color: var(--gold-hi); box-shadow: 0 0 0 3px rgba(201, 160, 99, 0.18); }
.auth-field svg { flex: none; width: 18px; height: 18px; color: var(--gold); }
.auth-field input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  color: var(--cream); font-family: var(--f-serif); font-size: 18px; font-weight: 500;
}
.auth-field input::placeholder { color: rgba(240, 228, 192, 0.6); }
.auth-hint { margin: -4px 4px 0; font-size: 13px; color: var(--cream-dim); }

.auth-check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 4px 0; font-size: 14px; color: var(--cream-dim); cursor: pointer; }
.auth-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--gold); flex: none; }

.auth-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 54px; margin-top: 8px; padding: 0 24px;
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  font-family: var(--f-serif); font-weight: 600; font-size: 17px; letter-spacing: 0.2em; text-transform: uppercase;
  color: #2a0c07;
  background: linear-gradient(180deg, var(--gold-hi) 0%, #d2ab6e 45%, #a87a3e 100%);
  box-shadow: 0 0 0 1px rgba(255, 230, 180, 0.35) inset, 0 10px 36px -12px rgba(201, 160, 99, 0.6);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.auth-btn:hover { box-shadow: 0 0 0 1px rgba(255, 230, 180, 0.5) inset, 0 14px 44px -10px rgba(201, 160, 99, 0.85); }
.auth-btn--ghost { color: var(--cream); background: transparent; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; letter-spacing: 0.12em; }
.auth-btn--ghost:hover { color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--gold); }
.auth-btn svg { width: 20px; height: 20px; }

.auth-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; font-size: 14px; }
.auth-links a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.auth-links a:hover { color: var(--gold-hi); }
.auth-links--center { justify-content: center; }

.auth-alert { margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; font-size: 14px; text-align: left; }
.auth-alert--error { color: var(--error); background: rgba(240, 138, 128, 0.08); border: 1px solid rgba(240, 138, 128, 0.35); }
.auth-alert--ok { color: var(--gold-hi); background: rgba(201, 160, 99, 0.1); border: 1px solid var(--line); }

.auth-telegram { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.auth-telegram__widget { min-height: 44px; display: flex; justify-content: center; }
.auth-small { margin: 14px 0 0; font-size: 13px; color: rgba(240, 228, 192, 0.5); }

.auth-dev { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--cream-faint); display: flex; flex-direction: column; gap: 8px; }
.auth-dev p { margin: 0 0 4px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.auth-dev a { padding: 10px; border: 1px solid var(--cream-faint); border-radius: 10px; font-size: 13px; text-decoration: none; color: var(--cream-dim); }
.auth-dev a:hover { border-color: var(--gold); color: var(--cream); }

.auth-foot { padding: 20px; text-align: center; font-size: 12px; letter-spacing: 0.06em; color: rgba(240, 228, 192, 0.4); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (max-width: 480px) {
  .auth-top { padding: 16px; }
  .auth-lockup b { font-size: 20px; }
  .auth-lockup span { font-size: 20px; margin-top: -8px; }
  .auth-back { font-size: 11px; letter-spacing: 0.14em; }
  .auth-main { padding: 28px 12px 40px; }
  .auth-card { border-radius: 22px; padding-top: 34px; }
  .auth-logo { font-size: 54px; }
  .auth-title { font-size: 27px; }
}
