/* ==========================================================================
   Pruxpax Wallet — Auth pages (login / signup / verify / reset / phrase)
   Matches the site design: dark #00020F, accent #1A4FFF, Urbanist/DM Sans.
   ========================================================================== */

:root {
  --p-bg: #00020f;
  --p-card: linear-gradient(160deg, rgba(27, 37, 94, 0.5) 0%, rgba(10, 13, 31, 0.72) 100%);
  --p-border: #161c44;
  --p-accent: #1a4fff;
  --p-accent-h: #2f5bff;
  --p-text: #a7adbe;
  --p-muted: #5b6485;
  --p-input-bg: #0b0f24;
  --p-input-border: #1e2a55;
  --p-danger: #ff7a7a;
  --p-green: #7ee2a8;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body.pruxpax-auth-body {
  margin: 0;
  background: var(--p-bg);
  color: var(--p-text);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.pruxpax-auth-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1100px 560px at 82% -10%, rgba(26, 79, 255, 0.2), transparent 60%),
    radial-gradient(900px 520px at -8% 112%, rgba(26, 79, 255, 0.13), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.auth-shell {
  min-height: 100vh;
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.auth-shell.auth-shell-center { justify-content: center; }

/* ---- brand panel ---- */
.auth-brand { flex: 1 1 46%; max-width: 520px; }

.auth-logo { height: 40px; width: auto; margin-bottom: 28px; }

.auth-brand-title {
  font-family: "Urbanist", sans-serif;
  color: #fff;
  font-size: 2.05rem;
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 14px;
}

.auth-brand-sub {
  color: var(--p-text);
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0 0 28px;
  max-width: 460px;
}

.auth-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

.auth-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #cdd3e3;
  font-size: .97rem;
}

.auth-features .fi {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(26, 79, 255, 0.16);
  border: 1px solid rgba(26, 79, 255, 0.45);
  color: #7d9bff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex: none;
}

/* ---- form card ---- */
.auth-card-wrap { flex: 1 1 44%; max-width: 480px; width: 100%; }

.auth-card {
  background: var(--p-card);
  border: 1px solid var(--p-border);
  border-radius: 16px;
  padding: 40px 36px;
}

.auth-brand-inline { margin-bottom: 22px; text-align: center; }
.auth-brand-inline .auth-logo { margin-bottom: 0; }

.auth-head { margin-bottom: 24px; }

.auth-title {
  font-family: "Urbanist", sans-serif;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.auth-sub { color: var(--p-text); font-size: .94rem; margin: 0; line-height: 1.5; }

.auth-field { margin-bottom: 18px; }

.auth-label {
  display: block;
  font-size: .85rem;
  color: #c6cde0;
  margin-bottom: 8px;
  font-weight: 500;
}

.auth-input {
  width: 100%;
  background: var(--p-input-bg);
  border: 1px solid var(--p-input-border);
  border-radius: 10px;
  color: #fff;
  padding: 13px 15px;
  font-size: .95rem;
  font-family: "DM Sans", sans-serif;
  outline: none;
  transition: border-color .2s;
}

.auth-input:focus { border-color: var(--p-accent); }
.auth-input::placeholder { color: #5b6485; }
textarea.auth-input { resize: vertical; }

.auth-err { color: var(--p-danger); font-size: .82rem; margin-top: 6px; }

.auth-alert { border-radius: 10px; padding: 12px 14px; font-size: .9rem; margin-bottom: 18px; }
.auth-alert-info { background: rgba(26, 79, 255, .12); border: 1px solid rgba(26, 79, 255, .35); color: #9db3ff; }
.auth-alert-success { background: rgba(39, 174, 96, .12); border: 1px solid rgba(39, 174, 96, .35); color: var(--p-green); }
.auth-alert-error { background: rgba(255, 90, 90, .12); border: 1px solid rgba(255, 90, 90, .35); color: #ff9d9d; }

.auth-btn {
  width: 100%;
  background: var(--p-accent);
  border: none;
  color: #fff;
  border-radius: 10px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  font-family: "Urbanist", sans-serif;
  cursor: pointer;
  transition: background .2s;
}
.auth-btn:hover { background: var(--p-accent-h); }
.auth-btn:disabled { opacity: .6; cursor: not-allowed; }
.auth-btn-outline { background: transparent; border: 1px solid #2a355e; color: #fff; }
.auth-btn-outline:hover { background: rgba(26, 79, 255, .12); border-color: var(--p-accent); }

.auth-link { color: #7d9bff; text-decoration: none; }
.auth-link:hover { color: #9db3ff; text-decoration: underline; }

.auth-row { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 20px; font-size: .9rem; }

.auth-check { display: flex; align-items: center; gap: 8px; color: var(--p-text); font-size: .88rem; }
.auth-check input { accent-color: var(--p-accent); width: 15px; height: 15px; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--p-muted);
  font-size: .85rem;
  margin: 22px 0;
}
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: #1a2447; }

.auth-foot { text-align: center; color: var(--p-muted); font-size: .82rem; margin-top: 22px; }

.auth-note { text-align: center; font-size: .92rem; color: var(--p-text); margin-top: 20px; }

/* ---- verify / secret phrase (before-login) ---- */
.auth-card-center { max-width: 520px; margin: 0 auto; }
.auth-phrase-box {
  background: var(--p-input-bg);
  border: 1px dashed var(--p-accent);
  border-radius: 12px;
  padding: 16px;
  color: #e6ebff;
  font-size: 1rem;
  line-height: 1.7;
  word-spacing: .35em;
  margin: 6px 0 20px;
}

/* ---- responsive ---- */
@media (max-width: 900px) {
  .auth-shell { flex-direction: column; gap: 30px; padding: 30px 16px; }
  .auth-brand { max-width: 100%; flex: none; }
  .auth-brand-title { font-size: 1.55rem; }
  .auth-features { display: none; }
  .auth-card-wrap { max-width: 100%; flex: none; }
  .auth-card { padding: 30px 22px; }
}
