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

  :root {
    --bg:           #f0ece4;
    --surface:      #e8e4dc;
    --surface2:     #e0dcd4;
    --surface3:     #d8d4cc;
    --border:       #dddddd;
    --border-mid:   #cccccc;
    --border-bright:#aaaaaa;
    --accent:       #6600ff;
    --accent-dim:   #5500cc;
    --accent-glow:  rgba(102,0,255,0.10);
    --accent-soft:  rgba(102,0,255,0.07);
    --text:         #111111;
    --text-mid:     #333333;
    --muted:        #777777;
    --danger:       #cc2222;
    --danger-soft:  rgba(204,34,34,0.08);
    --mono: 'JetBrains Mono', monospace;
    --sans: 'Manrope', sans-serif;
  }

  html, body {
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    overflow-x: hidden;
  }

  body::after {
    content: '';
    position: fixed;
    bottom: -200px; left: -200px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(102,0,255,0.04) 0%, transparent 70%);
    pointer-events: none; z-index: 0;
  }

  .page {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 28px;
    position: relative; z-index: 1;
  }

  header {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-mid);
    display: flex; align-items: center; gap: 12px;
  }
  .logo-wrap { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
  .logo-img  { height: 36px; width: auto; flex-shrink: 0; }
  .logo-text {
    font-family: var(--sans); font-weight: 800;
    font-size: clamp(15px, 3.5vw, 28px);
    letter-spacing: -0.04em; line-height: 1;
    color: var(--text); white-space: nowrap;
  }
  .logo-text em { color: var(--accent); font-style: normal; }
  .header-right { margin-left: auto; flex-shrink: 0; }
  .header-link {
    font-family: var(--mono); font-size: 9px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: #fff; text-decoration: none;
    border: 1px solid var(--accent);
    padding: 6px 12px; background: var(--accent);
    transition: background 0.15s;
    white-space: nowrap;
    display: inline-block;
  }
  .header-link:hover { background: var(--accent-dim); }

  main {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 0 40px;
  }

  .auth-wrap { width: 100%; max-width: 400px; }

  .auth-header { margin-bottom: 16px; }
  .auth-eyebrow {
    font-family: var(--mono); font-size: 9px; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 8px;
    display: flex; align-items: center; gap: 8px;
  }
  .auth-eyebrow::after {
    content: ''; flex: 1; height: 1px; background: var(--border-mid);
  }
  .auth-title {
    font-family: var(--sans); font-weight: 800;
    font-size: clamp(20px, 5vw, 28px);
    letter-spacing: -0.04em; line-height: 1.1;
    color: var(--text); margin-bottom: 4px;
  }
  .auth-sub {
    font-family: var(--mono); font-size: 10px;
    color: var(--muted); letter-spacing: 0.04em;
  }

  .auth-card {
    background: var(--surface);
    border: 1px solid var(--border-mid);
    padding: 20px;
  }

  .error-banner {
    display: flex; align-items: flex-start; gap: 10px;
    background: var(--danger-soft);
    border: 1px solid var(--danger);
    border-left: 3px solid var(--danger);
    padding: 10px 12px; margin-bottom: 14px;
    font-family: var(--mono); font-size: 10px;
    color: var(--danger); line-height: 1.6;
  }

  .form-group { margin-bottom: 12px; }
  .form-label {
    display: block;
    font-family: var(--mono); font-size: 8px; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--text-mid); margin-bottom: 6px;
  }
  .form-input {
    width: 100%;
    font-family: var(--mono); font-size: 12px; font-weight: 500;
    background: var(--bg); color: var(--text);
    border: 1px solid var(--border-bright);
    padding: 9px 12px; outline: none;
    transition: border-color 0.15s, background 0.15s;
    letter-spacing: 0.02em;
  }
  .form-input::placeholder { color: var(--muted); }
  .form-input:hover  { border-color: var(--text-mid); }
  .form-input:focus  { border-color: var(--accent); background: var(--surface2); }

  .btn-google {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 10px;
    background: var(--surface2); border: 1px solid var(--border-bright);
    font-family: var(--mono); font-size: 11px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-mid); text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
    margin-bottom: 12px;
    cursor: pointer;
  }
  .btn-google:hover { border-color: var(--accent); color: var(--accent); }

  .or-divider {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 14px;
  }
  .or-divider::before, .or-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border-mid);
  }
  .or-divider span {
    font-family: var(--mono); font-size: 9px; color: var(--muted);
  }

  .btn-submit {
    width: 100%;
    font-family: var(--mono); font-size: 11px; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    padding: 12px;
    background: var(--accent); color: #fff;
    border: 1px solid var(--accent);
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 4px;
  }
  .btn-submit:hover {
    background: var(--accent-dim); border-color: var(--accent-dim);
    box-shadow: 0 0 20px rgba(102,0,255,0.25);
  }

  .next-info {
    display: flex; align-items: center; gap: 8px;
    background: var(--accent-soft);
    border: 1px solid rgba(102,0,255,0.2);
    border-left: 3px solid var(--accent);
    padding: 8px 12px; margin-bottom: 14px;
    font-family: var(--mono); font-size: 10px;
    color: var(--text-mid);
  }

  .auth-footer {
    margin-top: 12px;
    text-align: center;
    font-family: var(--mono); font-size: 10px; color: var(--muted);
  }
  .auth-footer a {
    color: var(--accent); text-decoration: none;
    border-bottom: 1px solid rgba(102,0,255,0.3);
    transition: border-color 0.15s;
  }
  .auth-footer a:hover { border-color: var(--accent); }

  footer {
    padding: 16px 0;
    border-top: 1px solid var(--border-mid);
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--mono); font-size: 9px; color: var(--text-mid);
    letter-spacing: 0.08em; flex-wrap: wrap; gap: 8px;
  }

  /* ── TABLET ── */
  @media (max-width: 600px) {
    .page { padding: 0 16px; }
    main { padding: 16px 0 28px; }
  }

  /* ── MOBILE ── */
  @media (max-width: 480px) {
    .page { padding: 0 12px; }
    header { padding: 12px 0; gap: 8px; }
    .logo-img { height: 26px; }
    .logo-text { font-size: 14px; }
    .header-link { font-size: 8px; padding: 5px 10px; letter-spacing: 0.05em; }
    .auth-card { padding: 14px 12px; }
    .auth-title { font-size: 20px; }
    .auth-sub { font-size: 9px; }
    .form-input { font-size: 16px; }
    .btn-google { font-size: 10px; padding: 10px; gap: 8px; letter-spacing: 0.05em; }
    .btn-submit { padding: 12px; font-size: 10px; }
    main { padding: 12px 0 24px; }
    footer { font-size: 8px; }
    .auth-footer { font-size: 9px; }
  }

  /* ── SMALL MOBILE ── */
  @media (max-width: 360px) {
    .page { padding: 0 10px; }
    .auth-card { padding: 12px 10px; }
    .logo-img { height: 22px; }
    .logo-text { font-size: 12px; }
    .header-link { padding: 4px 8px; font-size: 7px; }
    .auth-title { font-size: 18px; }
    .form-group { margin-bottom: 10px; }
  }


.input-eye-wrap {
  position: relative;
  display: block;
}
.input-eye-wrap .form-input {
  padding-right: 40px;
  width: 100%;
}
.eye-btn {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  padding: 0;
  line-height: 1;
  transition: color 0.15s;
}
.eye-btn:hover { color: var(--accent); }