/* Ring Ring Please — visitor ring page (brand styling).
   Tokens pulled from the logo: red #E8323C ("Please"/bell), charcoal #383C42
   ("Ring Ring"). Linked only by the SSR ring page + the per-endpoint manage
   page — the A2P legal pages keep their own plain style.css, left untouched.

   Sizing strategy: MOBILE-FIRST type is deliberately LARGE (accessible for
   older eyes); the card fills the screen. At >=600px it becomes a centered card
   and type steps DOWN to normal desktop sizes. (A fluid clamp can't do this —
   it scales up on wide screens, the opposite of what we want.) */
:root {
  --rrp-red: #e8323c;
  --rrp-red-dark: #c42a33;
  --rrp-red-tint: #fdecee;
  --rrp-ink: #383c42;
  --rrp-ink-soft: #5b6168;
  --rrp-muted: #8a9099;
  --rrp-rule: #ececf0;
  --rrp-bg: #f5f6f8;
  --rrp-surface: #ffffff;
  --rrp-font:
    'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
    Arial, sans-serif;
  --rrp-radius: 22px;
  --rrp-shadow:
    0 12px 34px rgba(56, 60, 66, 0.1), 0 2px 6px rgba(56, 60, 66, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--rrp-font);
  line-height: 1.45;
  color: var(--rrp-ink);
  background:
    radial-gradient(135% 80% at 50% -20%, var(--rrp-red-tint), transparent 55%),
    var(--rrp-bg);
}

/* Mobile-first: card fills the screen; content centered as one group. */
main {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1.25rem;
  text-align: center;
  background: var(--rrp-surface);
}

.rrp-logo {
  display: block;
  height: 116px;
  width: auto;
  margin: 0 auto 1.5rem;
}

/* MOBILE type — large for accessibility. */
main h1 {
  margin: 0 0 0.4rem;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.12;
  color: var(--rrp-ink);
}

.rrp-loc {
  margin: 0 0 0.6rem;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--rrp-muted);
}

main p {
  margin: 0.6rem 0;
  font-size: 1.4rem;
  color: var(--rrp-ink-soft);
}

main p + p {
  font-size: 1.2rem;
  color: var(--rrp-muted);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rrp-rule);
  font-size: 1.05rem;
}

footer a {
  color: var(--rrp-muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--rrp-ink);
}

/* ── login / manage form (mobile type) ─────────────────────────────────────── */
.rrp-sub {
  margin: 0 0 1.75rem;
  font-size: 1.35rem;
  color: var(--rrp-muted);
}

.rrp-form {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
  text-align: left;
}

.rrp-form label {
  margin-top: 0.7rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--rrp-muted);
}

.rrp-form input {
  width: 100%;
  padding: 1.1rem 1.15rem;
  font-family: inherit;
  font-size: 1.3rem;
  color: var(--rrp-ink);
  border: 1.5px solid #d9dce1;
  border-radius: 14px;
  background: #fff;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.rrp-form input:focus {
  outline: none;
  border-color: var(--rrp-red);
  box-shadow: 0 0 0 3px var(--rrp-red-tint);
}

.rrp-btn {
  width: 100%;
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  font-family: inherit;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  background: var(--rrp-red);
  border: none;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(232, 50, 60, 0.32);
  transition:
    transform 0.06s ease,
    background 0.15s ease;
}

.rrp-btn:hover {
  background: var(--rrp-red-dark);
}

.rrp-btn:active {
  transform: translateY(1px);
}

.rrp-alt {
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

.rrp-alt a {
  color: var(--rrp-muted);
  text-decoration: none;
}

.rrp-alt a:hover {
  color: var(--rrp-ink);
}

/* ── Wide screens: centered card + step type DOWN to desktop sizes ──────────── */
@media (min-width: 600px) {
  body {
    align-items: center;
    justify-content: center;
    padding: 2rem;
  }
  main {
    flex: none;
    max-width: 30rem;
    border: 1px solid var(--rrp-rule);
    border-radius: var(--rrp-radius);
    box-shadow: var(--rrp-shadow);
  }
  .rrp-logo {
    height: 90px;
    margin-bottom: 1.1rem;
  }
  main h1 {
    font-size: 1.9rem;
  }
  .rrp-loc {
    font-size: 1.15rem;
  }
  main p {
    font-size: 1.1rem;
  }
  main p + p {
    font-size: 1rem;
  }
  footer {
    font-size: 0.85rem;
  }
  .rrp-sub {
    font-size: 1.05rem;
  }
  .rrp-form label {
    font-size: 0.9rem;
  }
  .rrp-form input {
    padding: 0.7rem 0.85rem;
    font-size: 1rem;
  }
  .rrp-btn {
    padding: 1rem 1.5rem;
    font-size: 1.15rem;
  }
  .rrp-alt {
    font-size: 0.9rem;
  }
}
