/* ============================================================
   AUTH SCREEN
   Neo-brutalist to match the dashboard: hard 3px ink borders,
   offset shadows, uppercase display type. No rounded corners.
   ============================================================ */

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  padding: 24px;
  background: var(--paper);
  overflow-y: auto;
}

.auth-card, .auth-card * {
  box-sizing: border-box;
}

.auth-card {
  margin: 6vh auto 40px;
  width: 100%;
  max-width: 430px;
  background: var(--surface);
  border: 3px solid var(--ink);
  border-top: 8px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 28px;
  position: relative;
  z-index: 1;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.auth-logo {
  width: 42px;
  height: 42px;
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  flex-shrink: 0;
}

.auth-brand h1 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  line-height: 1;
  color: var(--ink);
  margin: 0;
}

.auth-tag {
  font-family: var(--font-head);
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.auth-tabs {
  display: flex;
  border: 3px solid var(--ink);
  margin-bottom: 20px;
}

.auth-tab {
  flex: 1;
  padding: 10px 8px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--surface);
  color: var(--ink);
  border: none;
  cursor: pointer;
}

.auth-tab + .auth-tab {
  border-left: 3px solid var(--ink);
}

.auth-tab.active {
  background: var(--ink);
  color: var(--surface);
}

/* Keyboard focus must stay obvious: this is the only way in. */
.auth-tab:focus-visible,
.auth-screen input:focus-visible,
.auth-submit:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.auth-hint {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: -6px 0 12px;
}

.auth-plan {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  margin-bottom: 8px;
  border: 2px solid var(--ink);
  background: var(--surface);
  font-size: 0.82rem;
  line-height: 1.4;
  cursor: pointer;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.auth-plan input {
  width: auto;
  margin-top: 2px;
  flex-shrink: 0;
}

.auth-error {
  border: 3px solid #b3261e;
  background: #fdecea;
  color: #7a1c15;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  font-weight: 600;
}

.auth-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.auth-foot {
  margin: 18px 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

@media (max-width: 520px) {
  .auth-card { padding: 20px; box-shadow: 4px 4px 0 var(--ink); }
}

/* ============================================================
   FLYING PAPER AIRPLANES — animated background layer
   Each .plane slides/fades in from off-screen and settles at a
   40° upward-right angle. Stagger via --i CSS variable per element.
   ============================================================ */

.auth-planes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  color: var(--ink);
}

.plane {
  position: absolute;
  transform-origin: center;
  opacity: 0;
  transform: translate(-60px, 60px) rotate(5deg) scale(0.5);
  animation: fly-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 0.06s);
}

.plane svg {
  width: 38px;
  height: 38px;
}

@keyframes fly-in {
  to {
    opacity: 0.08;
    transform: translate(0, 0) rotate(5deg) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .plane {
    animation: none;
    opacity: 0.08;
    transform: rotate(5deg);
  }
}

/* ============================================================
   NEO-BRUTALIST GOOGLE SIGN-IN BUTTON & DIVIDER
   ============================================================ */
.neo-google-btn {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface, #ffffff);
  color: var(--ink, #111111);
  border: 3px solid var(--ink);
  border-radius: 0 !important;
  box-shadow: var(--btn-shadow, 4px 4px 0 var(--ink));
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  margin-top: 4px;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.12s ease;
  user-select: none;
}

.neo-google-btn:hover {
  background: var(--accent, #C3F903) !important;
  color: var(--ink, #111111) !important;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.neo-google-btn:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--ink);
}

.neo-google-text {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.25rem 0 1rem;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-head);
}

.auth-divider-line {
  flex: 1;
  border-bottom: 2px solid var(--ink);
}

.auth-divider-text {
  padding: 0 12px;
  background: var(--surface);
  white-space: nowrap;
}
