  /* Sign-in, account and error pages. Same look as pricing, about and contact:
     the variables below are the ones those pages use. */
  :root {
    --bg:             #fdfcff;
    --bg-card:        #ffffff;
    --bg-card-2:      #f3f0ff;
    --accent:         #6d28d9;
    --accent-dim:     rgba(109,40,217,0.07);
    --accent-pale:    #ede9fe;
    --accent-border:  rgba(109,40,217,0.18);
    --text:           #1c0a3c;
    --text-sub:       rgba(28,10,60,0.58);
    --text-muted:     rgba(28,10,60,0.36);
    --border:         rgba(28,10,60,0.08);
    --shadow-sm:      0 2px 10px rgba(109,40,217,0.07);
    --shadow-md:      0 8px 30px rgba(109,40,217,0.12);
  }
  [data-theme="dark"] {
    --bg:             #0b0d1f;
    --bg-card:        #111428;
    --bg-card-2:      #181c35;
    --accent:         #b794f4;
    --accent-dim:     rgba(183,148,244,0.12);
    --accent-pale:    #231a50;
    --accent-border:  rgba(183,148,244,0.26);
    --text:           #eee8ff;
    --text-sub:       rgba(238,232,255,0.64);
    --text-muted:     rgba(238,232,255,0.38);
    --border:         rgba(183,148,244,0.10);
    --shadow-sm:      0 2px 12px rgba(0,4,30,0.45);
    --shadow-md:      0 8px 32px rgba(0,4,30,0.65);
  }

  .auth-wrap {
    min-height: calc(100vh - 220px);
    display: flex; align-items: center; justify-content: center;
    padding: 56px 5% 72px;
    background: var(--bg);
  }
  .auth-card {
    width: 100%; max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--accent-border);
    border-radius: 24px; padding: 36px 32px;
    box-shadow: var(--shadow-sm);
  }
  .auth-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 4vw, 2.3rem);
    font-weight: 700; color: var(--text);
    margin: 0 0 0.4rem; text-align: center;
  }
  .auth-title em { color: var(--accent); font-style: italic; }
  .auth-sub { text-align: center; color: var(--text-sub); font-weight: 300; margin: 0 0 28px; line-height: 1.6; }
  .auth-section { display: flex; justify-content: center; margin-bottom: 4px; min-height: 44px; }
  .auth-divider {
    display: flex; align-items: center; gap: 14px; margin: 22px 0;
    color: var(--text-muted); font-size: 12.5px; letter-spacing: 1.5px; text-transform: uppercase;
  }
  .auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
  .auth-error {
    background: rgba(220,38,38,0.08); border: 1px solid rgba(220,38,38,0.3);
    color: #dc2626; border-radius: 10px; padding: 10px 14px; font-size: 0.9rem; margin-bottom: 18px;
  }
  .auth-error[hidden], form[hidden] { display: none; }
  .auth-fine { margin: 24px 0 0; font-size: 0.8rem; color: var(--text-muted); text-align: center; line-height: 1.6; }
  .auth-fine a, .auth-link { color: var(--accent); text-decoration: none; }
  .auth-link { background: none; border: none; padding: 10px 0 0; font: inherit; font-size: 0.88rem; cursor: pointer; display: block; margin: 0 auto; }
  .auth-link:hover, .auth-fine a:hover { text-decoration: underline; }

  .form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
  .form-group label {
    font-size: 12.5px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted);
  }
  .form-group input {
    background: var(--bg-card-2); border: 1px solid var(--accent-border);
    border-radius: 10px; padding: 11px 14px; font-size: 15px;
    font-family: 'Inter', sans-serif; color: var(--text); outline: none; width: 100%;
    transition: border-color 0.15s, box-shadow 0.15s;
  }
  .form-group input::placeholder { color: var(--text-muted); }
  .form-group input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }

  .btn-submit {
    width: 100%; padding: 13px; background: var(--accent); color: #fff;
    font-weight: 700; font-size: 16px; letter-spacing: 0.3px;
    border: none; border-radius: 11px; cursor: pointer;
    box-shadow: 0 6px 22px var(--accent-dim);
    transition: opacity 0.15s, transform 0.15s;
  }
  .btn-submit:hover { opacity: 0.88; transform: translateY(-1px); }
  .btn-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
  .btn-outline {
    width: 100%; padding: 12px; background: transparent; color: var(--accent);
    font-weight: 600; font-size: 15px; border: 1.5px solid var(--accent); border-radius: 11px; cursor: pointer;
    transition: background 0.15s;
  }
  .btn-outline:hover { background: var(--accent-dim); }
  .btn-outline:disabled { opacity: 0.55; cursor: not-allowed; }
  .btn-danger-link {
    background: none; border: none; color: #dc2626; font: inherit; font-size: 0.9rem;
    cursor: pointer; padding: 6px 0; text-decoration: underline;
  }
  .btn-danger-link:disabled { opacity: 0.55; cursor: not-allowed; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

  /* Account */
  .account-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
  .account-row:last-of-type { border-bottom: none; }
  .account-row dt { color: var(--text-muted); }
  .account-row dd { margin: 0; color: var(--text); font-weight: 600; text-align: right; }
  .account-list { margin: 0 0 24px; }
  .status-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; background: var(--accent-pale); color: var(--accent); }
  .status-pill.warn { background: rgba(217,119,6,0.14); color: #b45309; }
  .account-note { color: var(--text-sub); font-size: 0.9rem; line-height: 1.6; margin: 0 0 20px; }
  .account-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
  .confirm-box { background: var(--bg-card-2); border: 1px solid var(--accent-border); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
  .confirm-box p { margin: 0 0 12px; color: var(--text); font-size: 0.92rem; line-height: 1.55; }
  .confirm-box .row { display: flex; gap: 10px; }
  .confirm-box .row button { flex: 1; }
  .confirm-box[hidden] { display: none; }

  /* Error page */
  .error-code { font-family: 'Cormorant Garamond', serif; font-size: 4.5rem; font-weight: 700; color: var(--accent); text-align: center; line-height: 1; margin: 0 0 8px; }
  .error-actions { display: flex; justify-content: center; margin-top: 24px; }
  .error-actions a { display: inline-block; padding: 12px 22px; background: var(--accent); color: #fff; border-radius: 11px; text-decoration: none; font-weight: 600; }
