:root {
    --bg: #020617;
    --card: rgba(255,255,255,0.04);
    --border: rgba(148,163,184,0.18);
    --text: #e5e7eb;
    --muted: #9ca3af;
  
    --grad-1: #22d3ee;
    --grad-2: #6366f1;
    --grad-3: #a855f7;
    --grad-4: #e45b64;
    --grad-5: #b32b35;
    --grad-6: #844349;
  
    --radius: 22px;
    --shadow: 0 25px 80px rgba(0,0,0,.4);
  }
  
  * {
    box-sizing: border-box;
  }
  
  body {
    margin: 0;
    font-family: "Inter", system-ui, sans-serif;
    background:
      radial-gradient(circle at top, rgba(99,102,241,.15), transparent 40%),
      radial-gradient(circle at bottom left, rgba(168,85,247,.18), transparent 45%),
      radial-gradient(circle at bottom right, rgba(34,211,238,.15), transparent 45%),
      var(--bg);
    color: var(--text);
    min-height: 100vh;
  }
  
  .wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
  }
  
  .card {
    width: 100%;
    max-width: 420px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
  }
  
  .logo {
    font-family: "Playfair Display", serif;
    font-size: 2.2rem;
    margin: 0 0 12px;
  }
  
  .logo span {
    background: linear-gradient(
      90deg,
      var(--grad-1),
      var(--grad-2),
      var(--grad-3)
    );
    background-clip: text;
    -webkit-background-clip: text;
  
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
  
  .tagline {
    color: var(--muted);
    margin-bottom: 32px;
    font-size: .95rem;
  }
  
  .actions {
    display: grid;
    gap: 14px;
  }
  
  .btn {
    border-radius: 14px;
    padding: 14px 18px;
    font-weight: 600;
    font-size: .95rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .btn.primary {
    background: linear-gradient(90deg, var(--grad-1), var(--grad-2), var(--grad-3));
    color: #020617;
  }

  .btn.secondary {
    background: linear-gradient(90deg, var(--grad-1), var(--grad-2), var(--grad-3));
    color: #020617;
  }

  .btn.cancel {
    background: linear-gradient(90deg, var(--grad-4), var(--grad-5), var(--grad-6));
    color: #c2c3c5;
    width: 100%;
  }
  
  .btn.ghost {
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    color: var(--text);
  }
  
  .btn.text {
    background: none;
    color: var(--muted);
  }
  
  .btn.full {
    width: 100%;
  }
  
  .modal {
    position: fixed;
    inset: 0;
    background: rgba(2,6,23,.99);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
  }
  
  .modal.show {
    display: flex;
  }
  
  .modal-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 100%;
    max-width: 380px;
    padding: 28px;
    box-shadow: var(--shadow);
  }
  
  .modal-card h2 {
    margin-top: 0;
    margin-bottom: 16px;
    text-align: center;
  }

  .otp-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 8px 0 4px;
  }
  
  .otp-input {
    width: 40px;
    height: 48px;
    text-align: center;
    font-size: 1.3rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
  }
  
  @media (max-width: 400px) {
    .otp-input {
      width: 36px;
      height: 44px;
    }
  }
  
  .small {
    font-size: 0.8rem;
  }
  
  .small.muted,
  p.small.muted,
  #loginRequestStatus,
  #loginVerifyStatus {
    color: var(--muted);
  }
  
  
  /* .modal-card input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
  } */
  
  input {
    height: 2.5em;
    width: 100%;
    padding: 5px;
    margin-bottom: .5em;
    border-radius: 10px;
    border: 1px solid var(--grad-2);
    background-color: #e5e7eb;
  }
  
  .hidden {
    display: none !important;
  }