/* ==========================================================================
   DiPiGi Client Portal (dipigi.net) - site.css
   Plain CSS extracted from the Tailwind utilities used by the login mockup.
   No build step, no CDN: the page works fully offline.
   ========================================================================== */

/* ---------- Tokens (Tailwind-like scale) ---------- */
:root {
  --dp-bg: #080808;            /* page + header/footer, same as dipigi.com theme-color */
  --dp-surface: #111512;       /* cards / inputs */
  --dp-surface-2: #181d19;     /* raised surface */
  --dp-border: #26302a;
  --dp-text: #f3f5f4;
  --dp-muted: #9aa6a0;
  --dp-green: #22c55e;         /* primary accent  (tailwind green-500) */
  --dp-green-600: #16a34a;     /* hover           (tailwind green-600) */
  --dp-green-soft: rgba(34, 197, 94, .14);
  --dp-radius: .5rem;
  --dp-radius-lg: .875rem;
  --dp-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --dp-max: 72rem;
}

/* ---------- Base (preflight subset) ---------- */
*, *::before, *::after { box-sizing: border-box; border: 0 solid var(--dp-border); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--dp-font);
  line-height: 1.5;
  color: var(--dp-text);
  background: var(--dp-bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; margin: 0; }
svg { display: block; }

:focus-visible { outline: 2px solid var(--dp-green); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Page shell: header / centered main / footer ---------- */
.page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.container { width: 100%; max-width: var(--dp-max); margin-inline: auto; padding-inline: 1.25rem; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 60;
  background: var(--dp-green); color: #04130a; padding: .5rem 1rem;
  border-radius: var(--dp-radius); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 8, 8, .92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--dp-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; }

.brand { display: inline-block; color: var(--dp-text); }
.left-green-border { border-left: 4px solid var(--dp-green); }
.padding-left-2 { padding-left: .5rem; }

/* Utilities used by the brand block (same names as Tailwind) */
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.font-bold { font-weight: 700; }
.tracking-wider { letter-spacing: .05em; }
.block { display: block; }
.leading-tight { line-height: 1.25; }

/* ---------- Main: card centered on any viewport ---------- */
.main {
  flex: 1 0 auto;
  display: grid; place-items: center;          /* true horizontal + vertical centering */
  padding: 2rem 1rem;
  background:
    radial-gradient(60rem 28rem at 50% -10%, var(--dp-green-soft), transparent 70%),
    var(--dp-bg);
}

.login-card {
  width: 100%;                                  /* full width on phones */
  padding: 1.75rem 1.5rem;
  background: var(--dp-surface);
  border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius-lg);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .8);
}
@media (min-width: 40rem) { .login-card { padding: 2.25rem 2.25rem; } }
@media (min-width: 48rem) { .login-card { width: 50%; } }   /* half of the width from tablet up */

.login-head { text-align: center; margin-bottom: 1.75rem; }
.login-icon {
  display: grid; place-items: center; width: 3rem; height: 3rem; margin: 0 auto 1rem;
  border-radius: 9999px; background: var(--dp-green-soft); color: var(--dp-green);
}
.login-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.login-subtitle { margin-top: .375rem; font-size: .875rem; color: var(--dp-muted); }

/* ---------- Form ---------- */
.form { display: flex; flex-direction: column; gap: 1.125rem; }
.field { display: flex; flex-direction: column; gap: .375rem; }
.label { font-size: .875rem; font-weight: 500; }

.input {
  width: 100%; height: 2.875rem; padding: 0 .875rem;
  background: var(--dp-bg); color: var(--dp-text);
  border: 1px solid var(--dp-border); border-radius: var(--dp-radius);
  font-size: 1rem;                              /* >=16px prevents iOS zoom on focus */
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #5d6962; }
.input:hover { border-color: #38453d; }
.input:focus { outline: none; border-color: var(--dp-green); box-shadow: 0 0 0 3px var(--dp-green-soft); }

.form-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--dp-muted); cursor: pointer; }
.checkbox { width: 1.125rem; height: 1.125rem; accent-color: var(--dp-green); cursor: pointer; }

.link { font-size: .875rem; color: var(--dp-green); transition: color .15s; }
.link:hover { color: #4ade80; text-decoration: underline; text-underline-offset: 3px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; height: 2.875rem; padding: 0 1.25rem;
  border-radius: var(--dp-radius); font-weight: 600; cursor: pointer;
  background: var(--dp-green); color: #04130a;
  transition: background-color .15s, transform .05s;
}
.btn:hover { background: var(--dp-green-600); color: #fff; }
.btn:active { transform: translateY(1px); }

.login-help {
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--dp-border);
  text-align: center; font-size: .875rem; color: var(--dp-muted);
}
.login-help a { color: var(--dp-text); font-weight: 500; }
.login-help a:hover { color: var(--dp-green); }
.login-help p + p { margin-top: .25rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dp-bg); border-top: 1px solid var(--dp-border); color: var(--dp-muted); font-size: .875rem; }
.footer-grid { display: grid; gap: 2rem; padding-block: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.footer-title { margin-bottom: .75rem; font-size: .9375rem; font-weight: 600; color: var(--dp-text); }
.footer-text { max-width: 22rem; margin-top: .75rem; }
.footer-list { display: flex; flex-direction: column; gap: .5rem; }
.footer-list a { transition: color .15s; }
.footer-list a:hover { color: var(--dp-green); }
.footer-list strong { color: var(--dp-text); font-weight: 500; }
.footer-hours { margin-top: .75rem; font-size: .8125rem; }

/* Social band (same look as dipigi.com: gray-800 line, gray-400 text, green hover) */
.social-band { border-bottom: 1px solid #1f2937; }
.social-inner { display: flex; flex-direction: column; align-items: center; gap: .75rem; padding-block: 1.5rem; }
.social-title { font-size: .75rem; line-height: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #9ca3af; }
.social-nav { display: flex; align-items: center; justify-content: center; gap: 1.25rem; font-size: 1.25rem; color: #9ca3af; }
.social-link { display: inline-flex; border-radius: .25rem; transition: color .15s; }
.social-link:hover { color: var(--dp-green); }
.social-link:focus { outline: none; }
.social-link:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--dp-green); }

.footer-bottom { }
.footer-bottom-inner {
  display: flex; flex-direction: column; gap: .75rem;
  padding-block: 1.25rem; font-size: .8125rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.footer-links a:hover { color: var(--dp-green); }
@media (min-width: 48rem) {
  .footer-bottom-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
