/* Общий стиль страниц входа/регистрации/настроек — тёмно-золотая гамма */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@600;700;800&display=swap');
:root {
  color-scheme: dark;
  --bg: #141109;
  --surface: #1f1b13;
  --surface-2: #292317;
  --border: #3a331f;
  --gold: #d9a93f;
  --gold-bright: #f4cd76;
  --gold-soft: rgba(217, 169, 63, .13);
  --text: #efe9db;
  --muted: #a99f8a;
  --label: #d3c295;
  --radius: 16px;
  --font-body: 'Manrope', system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: 'Sora', 'Manrope', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  font-family: var(--font-body);
  margin: 0; min-height: 100vh; color: var(--text); background: var(--bg);
  background-image:
    radial-gradient(1000px 400px at 15% -120px, rgba(240, 196, 99, .10), transparent 60%),
    radial-gradient(800px 360px at 100% -40px, rgba(217, 169, 63, .07), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased; line-height: 1.55;
  display: flex; align-items: flex-start; justify-content: center; padding: 64px 18px 44px;
}
.card {
  width: 100%; max-width: 440px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .022), rgba(255, 255, 255, 0)), var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 32px 30px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.brand .logo {
  flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(155deg, rgba(244, 205, 118, .32), rgba(217, 169, 63, .05));
  border: 1px solid rgba(244, 205, 118, .5);
  box-shadow: 0 8px 22px rgba(217, 169, 63, .16), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.brand .logo svg { width: 24px; height: 24px; stroke: var(--gold-bright); }
h1 {
  font-family: var(--font-head); font-size: 1.42rem; font-weight: 800; margin: 0;
  letter-spacing: -.3px; line-height: 1.12;
  background: linear-gradient(92deg, #fbe6b0 10%, #e9bd63 55%, #d29a34 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub { color: var(--muted); font-size: .93rem; margin: 4px 0 0; }

label { display: block; margin: 17px 0 6px; color: var(--label); font-size: .92rem; font-weight: 500; }
input[type=email], input[type=password], input[type=text] {
  width: 100%; padding: 12px 14px; font-size: 1rem; font-family: inherit;
  background: rgba(0, 0, 0, .22); color: var(--text);
  border: 1px solid var(--border); border-radius: 12px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
input:focus {
  outline: none; border-color: var(--gold);
  background: rgba(0, 0, 0, .3);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.hint { color: var(--muted); font-size: .82rem; margin-top: 5px; }

button {
  width: 100%; margin-top: 24px; padding: 13px 24px;
  border: 0; border-radius: 13px; cursor: pointer;
  background: linear-gradient(180deg, #f6d585 0%, #e4b155 46%, #cf9a34 100%);
  color: #2a1f08; font-family: var(--font-head); font-size: 1.02rem;
  font-weight: 700; letter-spacing: .2px;
  box-shadow: 0 8px 22px rgba(207, 154, 52, .3), inset 0 1px 0 rgba(255, 255, 255, .4);
  transition: filter .2s ease, transform .14s ease, box-shadow .2s ease;
}
button:hover {
  filter: brightness(1.05) saturate(1.05); transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(217, 169, 63, .38), inset 0 1px 0 rgba(255, 255, 255, .5);
}
button:active { transform: translateY(0);
  box-shadow: 0 4px 12px rgba(207, 154, 52, .3), inset 0 1px 0 rgba(255, 255, 255, .3); }

.msg { margin-top: 18px; border-radius: 11px; padding: 12px 15px; line-height: 1.45; font-size: .93rem; }
.msg.error { background: rgba(190, 70, 70, .14); border: 1px solid #8a4a42; }
.msg.success { background: rgba(96, 170, 110, .13); border: 1px solid #4d7a55; }
.msg.info { background: var(--gold-soft); border: 1px solid rgba(217, 169, 63, .5); }
.msg.info b, .msg.info .robot { color: var(--gold-bright); font-weight: 600; word-break: break-all; }

/* строка с основной кнопкой и ссылкой «Пропустить» */
.row-actions { display: flex; align-items: center; gap: 8px; margin-top: 22px; }
.row-actions button { flex: 1; margin-top: 0; }
.row-actions .skip {
  flex: none; padding: 12px 18px; color: var(--muted);
  text-decoration: none; white-space: nowrap; border-radius: 11px;
}
.row-actions .skip:hover { color: var(--gold-bright); background: var(--gold-soft); }

/* ссылка-кнопка (например, «Отправить код заново») */
.resend { margin-top: 16px; text-align: center; }
.linkbtn {
  width: auto; margin: 0; padding: 0; background: none; border: 0; box-shadow: none;
  color: var(--gold-bright); font: inherit; font-size: .92rem; cursor: pointer;
}
.linkbtn:hover { filter: none; transform: none; box-shadow: none; text-decoration: underline; }

.foot { margin-top: 20px; text-align: center; color: var(--muted); font-size: .92rem; }
.foot a { color: var(--gold-bright); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

.back { display: inline-block; margin-bottom: 6px; color: var(--muted); font-size: .9rem; text-decoration: none; }
.back:hover { color: var(--gold-bright); }
