/*
 * Login page only. Loaded AFTER app.css on layouts/guest.blade.php, so it
 * inherits app.css's :root tokens (the FA3S navy/orange/teal palette,
 * Poppins/Inter fonts) and its .alert.error styling rather than
 * redefining either — this file adds only what's unique to a centered
 * auth card: the gradient page background, the badge/wordmark header, and
 * icon-adorned inputs. Before the whole-app rebrand this file carried its
 * own copy of the brand colors (--brand-navy etc.); that's gone now that
 * app.css carries the same colors under --accent/--action/--success, so
 * there's a single source of truth instead of two palettes that could
 * silently drift apart.
 */

body.guest-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(760px 420px at 14% 8%, rgba(23, 162, 160, 0.35), transparent 60%),
    radial-gradient(620px 380px at 88% 92%, rgba(232, 121, 44, 0.28), transparent 60%),
    linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  background-attachment: fixed;
}

/* Faint node/lattice texture — echoes the small connecting dots on the
   badge mark (the "linked ledgers" motif), kept subtle enough to read as
   texture rather than decoration. */
body.guest-body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  pointer-events: none;
}

.guest-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 2rem 1.25rem;
}

.guest-card {
  width: 100%;
  max-width: 396px;
  background: var(--card);
  border-radius: 20px;
  padding: 2.25rem 2.1rem 1.9rem;
  box-shadow:
    0 24px 60px -18px rgba(4, 20, 36, 0.55),
    0 2px 8px rgba(4, 20, 36, 0.12);
}

.guest-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.6rem;
}

.guest-brand img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  filter: drop-shadow(0 6px 14px rgba(11, 58, 94, 0.35));
}

.guest-brand .brand-name {
  margin-top: 0.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.045em;
  color: var(--accent);
}

.guest-brand .brand-name span { color: var(--action); }

.guest-brand .brand-tag {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.guest-card h1 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
}

.guest-card .lede {
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.guest-card .alert.error { margin-bottom: 1.1rem; }

.auth-field { margin-bottom: 1.1rem; }

.auth-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.auth-input-wrap { position: relative; }

.auth-input-wrap svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  stroke: var(--ink-soft);
  fill: none;
  pointer-events: none;
  transition: stroke 0.15s ease;
}

.auth-input-wrap:focus-within svg { stroke: var(--action); }

.auth-field input[type='email'],
.auth-field input[type='password'] {
  width: 100%;
  padding: 0.68rem 0.8rem 0.68rem 2.5rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--ink);
  background: #fbfcfe;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-field input[type='email']:focus,
.auth-field input[type='password']:focus {
  outline: none;
  border-color: var(--action);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(232, 121, 44, 0.15);
}

.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.auth-checkbox input {
  width: 15px;
  height: 15px;
  accent-color: var(--success);
}

.auth-submit {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--action), var(--action-deep));
  box-shadow: 0 10px 22px -10px rgba(232, 121, 44, 0.65);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -10px rgba(232, 121, 44, 0.7); }
.auth-submit:active { transform: translateY(0); box-shadow: 0 6px 14px -8px rgba(232, 121, 44, 0.6); }

.guest-card .foot-note {
  margin: 1.2rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.guest-footer {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}
