/* Styling for the auth + account pages. Reuses the site's tokens (loaded via
   styles.css) and adds a centered glass card layout. */

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--edge);
  border-radius: 22px;
  padding: 34px 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
}

.auth-card .brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
}
.auth-card .brand b { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }

.auth-card h1 { font-size: 26px; margin: 0 0 6px; }
.auth-card .sub { color: var(--mute); font-size: 14.5px; margin: 0 0 24px; }

.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 12px; font-family: var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 7px; }
.field input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--edge);
  border-radius: 12px;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field input:focus {
  outline: none;
  border-color: rgba(255, 120, 71, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 61, 129, 0.14);
}

.btn-full { width: 100%; justify-content: center; margin-top: 6px; }

.auth-alt { text-align: center; font-size: 14px; color: var(--mute); margin-top: 20px; }
.auth-alt a { color: var(--o-light); font-weight: 600; }

.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12px; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--edge); }

.oauth { display: grid; gap: 10px; }
.oauth button {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; padding: 11px 14px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--edge);
  border-radius: 12px; color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 600;
  cursor: pointer; transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.oauth button:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--edge-soft); }

.auth-msg { font-size: 13.5px; border-radius: 12px; padding: 11px 13px; margin-bottom: 16px; }
.auth-msg.error { background: rgba(255, 77, 109, 0.12); border: 1px solid rgba(255, 77, 109, 0.35); color: #ffb3c1; }
.auth-msg.ok { background: rgba(52, 232, 158, 0.1); border: 1px solid rgba(52, 232, 158, 0.32); color: #9ff0cf; }
.auth-msg.info { background: rgba(124, 92, 255, 0.1); border: 1px solid rgba(124, 92, 255, 0.3); color: #cdc0ff; }
.auth-msg[hidden] { display: none; }

.back-link { position: fixed; top: 22px; left: 24px; font-size: 14px; color: var(--mute); z-index: 5; }
.back-link:hover { color: var(--ink); }

/* --- account page --------------------------------------------------------- */
.account { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; padding: 130px 20px 90px; }
.acct-head { margin-bottom: 26px; }
.acct-head .kicker {
  display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--o-light); margin-bottom: 12px;
}
.account h1 { font-size: clamp(34px, 5vw, 46px); margin: 0 0 10px; }
.account .sub { color: var(--mute); margin: 0; font-size: 15px; }

/* Featured plan card — gradient ring + glass, mirroring the pricing/download hero. */
.plan-hero { position: relative; border-radius: 24px; margin-bottom: 18px; }
.plan-hero .ring {
  position: absolute; inset: -1px; border-radius: 25px; z-index: 0;
  background: conic-gradient(from 135deg, #ff7847, #ff3d81, #7c5cff, #ff7847);
  opacity: 0.45; filter: blur(3px);
}
.plan-hero-inner {
  position: relative; z-index: 1; border-radius: 24px; padding: 28px 30px;
  background: linear-gradient(180deg, rgba(22, 20, 34, 0.92), rgba(14, 13, 24, 0.92));
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.plan-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.plan-current .kick,
.plan-stats .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.plan-current .kick { margin-bottom: 10px; }
.plan-stats { display: flex; flex-direction: column; gap: 8px; text-align: right; }
.plan-stats .ps-row { display: flex; gap: 10px; align-items: baseline; justify-content: flex-end; }
.plan-stats .v { font-size: 14px; font-weight: 600; text-transform: capitalize; }

.plan-pill {
  display: inline-flex; align-items: center;
  font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em;
  padding: 6px 18px; border-radius: 14px; color: #1a0d12;
  background: var(--grad); box-shadow: 0 6px 22px rgba(255, 61, 129, 0.4);
}
.plan-pill.free {
  background: rgba(255, 255, 255, 0.07); color: var(--ink);
  border: 1px solid var(--edge); box-shadow: none;
}

.acct-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.acct-actions .arrow { transition: transform 0.25s var(--ease); }
.acct-actions .btn:hover .arrow { transform: translateX(4px); }

.acct-card {
  position: relative; z-index: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--edge);
  border-radius: 20px;
  padding: 8px 26px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.acct-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--edge-soft); }
.acct-row:last-child { border-bottom: 0; }
.acct-row .k { color: var(--faint); font-size: 12px; font-family: var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.acct-row .v { font-size: 15px; font-weight: 600; }
