
:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --primary: #ff6f8f;
  --primary-hover: #ff5c81;
  --shadow: 0 10px 30px rgba(0,0,0,.06);
  --radius: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); }
.auth-page { min-height: 100vh; display: flex; flex-direction: column; }
.auth-header { background: #fff; border-bottom: 1px solid var(--border); }
.auth-header-inner { max-width: 1100px; margin: 0 auto; padding: 18px 20px; display: flex; align-items: center; }
.auth-brand { display: inline-flex; align-items: center; text-decoration: none; }
.auth-brand img { height: 32px; width: auto; display: block; }
.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 16px 96px; }
.auth-card { width: 100%; max-width: 560px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 24px; }
.auth-title { margin: 0 0 22px; font-size: 38px; line-height: 1.1; }
.auth-subtitle { margin: -8px 0 20px; color: var(--muted); font-size: 15px; }
.auth-alert { margin-bottom: 16px; padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.auth-alert-danger { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
.auth-alert-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label { font-size: 15px; font-weight: 600; }
.auth-field input, .auth-field select, .auth-field textarea { width: 100%; min-height: 46px; border: 1px solid var(--border); border-radius: 12px; padding: 11px 14px; font-size: 16px; background: #fff; color: var(--text); outline: none; }
.auth-field textarea { min-height: 110px; resize: vertical; }
.auth-field input:focus, .auth-field select:focus, .auth-field textarea:focus { border-color: #fda4af; box-shadow: 0 0 0 4px rgba(255,111,143,.12); }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); }
.auth-check input { width: auto; min-height: auto; margin-top: 4px; }
.auth-btn { min-height: 46px; border: 0; border-radius: 999px; background: var(--primary); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; padding: 0 18px; transition: background .15s ease, transform .05s ease; }
.auth-btn:hover { background: var(--primary-hover); }
.auth-btn:active { transform: translateY(1px); }
.auth-links { margin-top: 18px; font-size: 15px; color: var(--muted); }
.auth-links a, .auth-check a { color: #7c3aed; text-decoration: none; }
.auth-links a:hover, .auth-check a:hover { text-decoration: underline; }
.auth-help { color: var(--muted); font-size: 14px; }
@media (max-width: 640px) {
  .auth-title { font-size: 30px; }
  .auth-card { padding: 22px 16px; border-radius: 16px; }
  .auth-row { grid-template-columns: 1fr; }
  .auth-main { padding: 20px 12px 96px; align-items: flex-start; }
}
