
    :root {
      --bg: #FDF8F0;
      --ink: #1A1A1A;
      --muted: #6B7280;
      --brand: #126B01;
      --accent: #FFCC00;
      --line: #E8E0D0;
      --radius-lg: 24px;
      --radius-md: 16px;
      --radius-sm: 12px;
      --shadow-card: 0 4px 24px rgba(0,0,0,0.08);
    }

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

    body {
      font-family: 'Manrope', 'Segoe UI', sans-serif;
      background: #FDF8F0;
      color: var(--ink);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    /* Header */
    .auth-header {
      padding: 20px 24px;
      background: #FDF8F0;
      border-bottom: 1px solid var(--line);
    }
    .auth-header a {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      color: var(--brand);
      font-weight: 700;
      font-size: 1.1rem;
    }
    .auth-header img { width: 32px; height: 32px; border-radius: 8px; }

    /* Page layout */
    .auth-page {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 40px 16px;
    }

    .auth-card {
      background: #fff;
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-card);
      border: 1px solid var(--line);
      width: 100%;
      max-width: 420px;
      padding: 40px 36px;
    }

    .auth-card h1 {
      font-size: 1.5rem;
      font-weight: 800;
      color: var(--brand);
      margin-bottom: 6px;
    }
    .auth-card .subtitle {
      font-size: 0.9rem;
      color: var(--muted);
      margin-bottom: 28px;
    }

    /* Tab switcher */
    .tab-row {
      display: flex;
      background: #F0EAD8;
      border-radius: var(--radius-sm);
      padding: 4px;
      margin-bottom: 28px;
    }
    .tab-btn {
      flex: 1;
      padding: 8px 0;
      border: none;
      background: transparent;
      border-radius: 10px;
      font-family: inherit;
      font-size: 0.875rem;
      font-weight: 600;
      color: var(--muted);
      cursor: pointer;
      transition: all 0.15s;
    }
    .tab-btn.active {
      background: #fff;
      color: var(--brand);
      box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    }

    /* Form */
    .form-group {
      margin-bottom: 16px;
    }
    .form-group label {
      display: block;
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--muted);
      margin-bottom: 6px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
    .form-group input {
      width: 100%;
      padding: 12px 14px;
      border: 1.5px solid var(--line);
      border-radius: var(--radius-sm);
      font-family: inherit;
      font-size: 0.95rem;
      color: var(--ink);
      background: #fff;
      transition: border-color 0.15s;
      outline: none;
    }
    .form-group input:focus {
      border-color: var(--brand);
    }

    .btn-primary {
      width: 100%;
      padding: 13px;
      background: var(--brand);
      color: #fff;
      border: none;
      border-radius: var(--radius-sm);
      font-family: inherit;
      font-size: 0.95rem;
      font-weight: 700;
      cursor: pointer;
      transition: opacity 0.15s;
      margin-top: 4px;
    }
    .btn-primary:hover { opacity: 0.88; }
    .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

    /* Divider */
    .divider {
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 24px 0;
      color: var(--muted);
      font-size: 0.8rem;
    }
    .divider::before, .divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--line);
    }

    /* OAuth buttons */
    .oauth-btn {
      width: 100%;
      padding: 12px 14px;
      border: 1.5px solid var(--line);
      border-radius: var(--radius-sm);
      background: #fff;
      font-family: inherit;
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--ink);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      transition: border-color 0.15s, background 0.15s;
      margin-bottom: 10px;
    }
    .oauth-btn:hover { border-color: var(--brand); background: #F0FAE8; }
    .oauth-btn svg { flex-shrink: 0; }

    /* Error / success messages */
    .msg {
      padding: 12px 14px;
      border-radius: var(--radius-sm);
      font-size: 0.875rem;
      font-weight: 500;
      margin-bottom: 16px;
      display: none;
    }
    .msg.error { background: #fff0f0; color: #b91c1c; border: 1px solid #fecaca; display: block; }
    .msg.success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; display: block; }

    .forgot-link {
      text-align: right;
      margin-top: -8px;
      margin-bottom: 16px;
    }
    .forgot-link a {
      font-size: 0.8rem;
      color: var(--muted);
      text-decoration: underline;
      cursor: pointer;
    }

    @media (max-width: 480px) {
      .auth-card { padding: 28px 20px; }
    }
  
[hidden] { display:none !important; }
.auth-card h1, .auth-header a { font-family:'Sora','Segoe UI',sans-serif;letter-spacing:-.035em; }
.auth-card { box-shadow:0 4px 16px rgba(0,0,0,.04); }
.auth-card .subtitle { line-height:1.65;margin-top:10px; }
.eyebrow { font-size:.72rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#126B01;margin-bottom:14px; }
.auth-icon { width:56px;height:56px;background:#F0FAE8;color:#126B01;border-radius:16px;display:grid;place-items:center;margin-bottom:24px; }
.back-link { display:block;text-align:center;margin-top:24px;color:#126B01;font-size:.875rem;font-weight:700; }
.auth-footer { text-align:center;padding:20px;color:#6B7280;font-size:.75rem;line-height:1.8; }
.auth-footer a { color:inherit; }
button,input,a { -webkit-tap-highlight-color:transparent; }
a:focus-visible,button:focus-visible { outline:3px solid #126B01;outline-offset:4px; }
.auth-card { animation:enter .25s ease-out; }
.btn-primary { transition:background .15s,transform .15s; }
.btn-primary:hover { background:#0e5001;opacity:1; }
.btn-primary:active { transform:translateY(1px); }
@keyframes enter { from { opacity:0;transform:translateY(6px); } to { opacity:1;transform:translateY(0); } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none !important;transition:none !important; } }
