body {
    background:
        linear-gradient(
            rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.65)
        ),
        url("/static/images/genesis.webp");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* for the main content area below the main navbar to fix the navbar */
.main-area{
  margin: 0 auto;
}

/* Background overlays (glass + premium) */
.ppl-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.ppl-bg__blur{
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.0);
}

.ppl-bg__grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(900px 600px at 50% 30%, #000 55%, transparent 78%);
}

/* Layout */
.ppl-auth {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 22px;
  display: flex;

  min-height: 100vh;
  justify-content: center;   /* horizontal */
  align-items: center;       /* vertical */
}

.ppl-card {
  width: min(460px, 100%);
  border-radius: 22px;
  padding: 22px 22px 18px;

  background: var(--ppl-wild-sand);
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow:
    0 30px 70px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.55);

  backdrop-filter: blur(10px);
  transform: translateZ(0);
}

.ppl-card__header { text-align: center; padding: 6px 8px 10px; }

.ppl-title {
  font-size: 1.95rem;
  letter-spacing: -0.02em;
  color: var(--ppl-deep-sea-green);
  margin-bottom: 6px;
}

.ppl-subtitle {
  font-size: 0.98rem;
  color: #334155;
  line-height: 1.35;
}

.ppl-icon { color: var(--ppl-deep-sea-green); margin-left: 6px; }

.ppl-divider {
  width: 100%;
  height: 1px;
  margin: 14px 0 4px;
  background: var(--ppl-deep-sea-green)
}

/* Form */
.ppl-form { padding: 12px 6px 6px; }

.ppl-field {
  display: flex;
  gap: 12px;
  align-items: center;

  padding: 12px 12px;
  border-radius: 16px;

  border: 1px solid var(--ppl-deep-sea-green);

  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
  margin-bottom: 12px;
}

.ppl-field:hover {
  transform: translateY(-1px);
  border-color: var(--ppl-mirage)
}

.ppl-field:focus-within {
  border-color: var(--ppl-mirage);
  background: var(--ppl-wild-sand);
  box-shadow:
    0 2px 4px var(--ppl-deep-sea-green),
    inset 0 1px 0 rgba(255,255,255,0.7);
}

.ppl-field__icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;

  background: var(--ppl-wild-sand);
  border: 1px solid var(--ppl-deep-sea-green);
}

.login__icon {
  color: var(--ppl-deep-sea-green);
  font-size: 1.05rem;
}

.ppl-field__body { 
  flex: 1; min-width: 0; 
  position: relative;
}

.ppl-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: #475569;
  margin-bottom: 4px;
}

.ppl-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #0f172a;
  font-size: 0.98rem;
}

.ppl-input::placeholder { color: #94a3b8; }

/* Password toggle button */
.ppl-passwordToggle{
  position: absolute;
  right: 12px;
  bottom: 12px;   /* aligns with input text */
  border: none;
  background: transparent;
  cursor: pointer;
  color: rgba(22,35,43,.55);
  font-size: 0.95rem;
  padding: 4px;
  transition: color .2s ease, transform .15s ease;
}

/* Hover */
.ppl-passwordToggle:hover{
  color: var(--ppl-blaze-orange);
  transform: scale(1.05);
}

/* Active visible state */
.ppl-passwordToggle.is-visible{
  color: var(--ppl-mirage);
}

/* Ensure input has space for the icon */
.ppl-input{
  padding-right: 42px !important;
}

/* Meta links */
.ppl-meta {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #475569;
  font-size: 0.92rem;
}

.ppl-link {
  color: var(--ppl-deep-sea-green);
  text-decoration: none;
  font-weight: 700;
  transition: color 160ms ease, transform 160ms ease;
}
.ppl-link:hover { color: var(--ppl-mirage); transform: translateY(-1px); }
.ppl-link--strong { color: var(--ppl-deep-sea-green) }

.ppl-meta__dot { opacity: 0.5; }

/* Google authentication */
.ppl-authActions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: stretch;
  gap: 10px;
  margin-top: 14px;
}

.ppl-authActions__login {
  width: 100%;
  min-width: 0;
}

.ppl-authHint {
  margin: 10px 2px 0;
  color: rgba(71, 85, 105, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.ppl-googleMiniForm {
  margin: 0;
  padding: 0;
  min-width: 0;
}

.ppl-googleMiniBtn {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(247,250,249,0.96));
  color: #ea4335;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.78),
    0 10px 24px rgba(15, 23, 42, 0.07);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.ppl-googleMiniBtn:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.34);
  background:
    linear-gradient(135deg, rgba(255,255,255,1), rgba(240,253,250,0.95));
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.11);
}

.ppl-googleMiniBtn:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.22);
  outline-offset: 3px;
}

.ppl-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .ppl-authActions {
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 9px;
    margin-top: 12px;
  }

  .ppl-googleMiniBtn {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }
}

@media (max-width: 640px) {
  .ppl-auth {
    padding: 18px 14px;
    align-items: flex-start;
  }

  .ppl-card {
    border-radius: 18px;
    padding: 18px 16px 16px;
  }
}

.ppl-card__footer { padding: 14px 6px 2px; }

.ppl-trust {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.ppl-trust__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 8px 10px;
  border-radius: 999px;

  font-size: 0.82rem;
  color: #334155;

  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(229,231,235,0.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.ppl-trust__chip i { color: var(--ppl-deep-sea-green) }

/* Reveal states (JS toggles .is-in) */
.js-reveal {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(6px);
  transition: opacity 700ms cubic-bezier(.2,.8,.2,1),
              transform 700ms cubic-bezier(.2,.8,.2,1),
              filter 700ms cubic-bezier(.2,.8,.2,1);
  will-change: transform, opacity, filter;
}

.js-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
  .js-reveal { opacity: 1; transform: none; filter: none; transition: none; }
}
