/* Attractum · вход, регистрация, подтверждение почты, восстановление.
   Токены — в tokens.css, база кнопок и полей — в ui.css. */
body { position: relative; display: flex; flex-direction: column; min-height: 100vh; background: #fcfcfd; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(70% 46% at 50% 0%, var(--lavender-2) 0%, rgba(238, 240, 255, 0) 74%); }

.auth-top { position: relative; display: flex; justify-content: center; padding: 28px 20px; }
.auth-main { position: relative; flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 4px 16px 56px; }
.auth-card {
  width: 100%; max-width: 420px; padding: 30px 28px 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(23, 23, 27, .04), 0 16px 40px rgba(38, 34, 120, .10);
  animation: card-in .45s var(--ease-out) both;
}
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.auth-card h1 { margin-bottom: 6px; font-size: 24px; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; }
.auth-sub { margin-bottom: 22px; font-size: 14.5px; line-height: 1.5; color: var(--ink-4); }

.field { display: block; margin-bottom: 14px; }
.field > span, .field > label > span { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=password], .field select {
  width: 100%; height: 40px; padding: 0 12px; border-radius: var(--r-md); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; outline: none;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.field input::placeholder { color: var(--ink-5); }
.field input:hover, .field select:hover { border-color: var(--ink-5); }
.field input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field select { appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236c6c78' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px !important; }
.pw-toggle { position: absolute; right: 5px; top: 5px; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink-5); cursor: pointer; transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.pw-toggle:hover { background: var(--surface-2); color: var(--ink); }
.meter { height: 4px; margin-top: 8px; border-radius: var(--r-full); background: var(--surface-3); overflow: hidden; }
.meter i { display: block; width: 0; height: 100%; border-radius: var(--r-full); background: var(--accent); transition: width .2s var(--ease-out), background .2s var(--ease-out); }
.meter-text { min-height: 18px; margin-top: 6px; font-size: 12.5px; color: var(--ink-5); }
.check { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 18px; font-size: 13.5px; line-height: 1.45; color: var(--ink-3); }
.check input { width: 16px; height: 16px; margin-top: 1px; flex: none; accent-color: var(--accent); }
.err { display: none; margin-bottom: 14px; padding: 10px 12px; border-radius: var(--r-md); border: 1px solid color-mix(in srgb, var(--danger) 28%, transparent); background: var(--danger-soft); color: var(--danger); font-size: 13.5px; line-height: 1.45; }
.err.show { display: block; animation: card-in var(--dur-slow) var(--ease-out) both; }
.info { margin-bottom: 14px; padding: 10px 12px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-2); font-size: 13.5px; line-height: 1.45; color: var(--ink-3); }
.auth-alt { margin-top: 14px; font-size: 13.5px; text-align: center; color: var(--ink-4); }
.reset-box p { color: var(--ink-4); }
.auth-card .btn-lg { width: 100%; height: 42px; font-size: 15px; }
.auth-card .btn-block { width: 100%; }

@media (max-width: 400px) { .auth-card { padding: 24px 18px; } .field input, .field select { font-size: 16px; } }
