/* Linea login page. Requires styles/tokens.css and styles/landing.css. */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(380px, 1fr) 1.25fr; gap: 18px; padding: 18px; }
.auth-side { display: flex; flex-direction: column; padding: 4px 16px; }
.auth-side .logo { height: 46px; }
.auth-form { flex: 1; width: min(100%, 380px); margin: 0 auto; display: flex; flex-direction: column; justify-content: center; padding: 42px 0; }
.auth-form .duo { margin-bottom: 28px; }

.flash-messages:empty { display: none; }
.flash-messages { margin-bottom: 16px; }
.flash-message { padding: 12px 14px; border-radius: 8px; font-size: 14px; line-height: 1.55; animation: flash-in 0.25s ease; }
.flash-success { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-soft); }
.flash-error { background: var(--accent-tint); color: var(--accent-ink); }
@keyframes flash-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Google OAuth primary login button */
.auth button.google-btn,
.google-btn {
  width: 100%;
  height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #dadce0;
  color: #1f1f1f;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth button.google-btn:hover:not(:disabled),
.google-btn:hover:not(:disabled) {
  background: #f8fafd;
  border-color: #c6cacf;
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.08);
}
.auth button.google-btn:active:not(:disabled),
.google-btn:active:not(:disabled) {
  background: #f1f3f4;
}
.auth button.google-btn:disabled,
.google-btn:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}
.auth button.google-btn:focus-visible,
.google-btn:focus-visible {
  outline: 2px solid #4285f4;
  outline-offset: 2px;
}
.oauth-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
}
.oauth-label {
  display: inline-block;
  line-height: 1.2;
}
.oauth-status-hint {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-faint);
  text-align: center;
}

.back-link { margin-top: 20px; align-self: center; font-size: 14px; color: var(--ink-soft); }
.back-link:hover { color: var(--ink); }

.auth-foot { padding: 12px 0 8px; font-size: 13px; color: var(--ink-faint); display: flex; gap: 16px; flex-wrap: wrap; }
.auth-foot a:hover { color: var(--ink); }

.spinner { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, 0.12); border-top-color: rgba(0, 0, 0, 0.7); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.auth-stage { min-height: 0; background: #16243d; border-radius: 12px; overflow: hidden; }
.auth-stage::before { inset: 28px 24px 116px; background: url("../assets/stage/linea-auth.svg") center / contain no-repeat; }
.auth-stage p { position: absolute; left: 36px; bottom: 28px; right: 36px; font-size: 20px; font-weight: 500; line-height: 1.45; letter-spacing: -0.015em; color: #f8fafc; text-shadow: 0 2px 14px rgba(10, 18, 36, 0.7); }

@media (max-width: 960px) {
  .auth { grid-template-columns: minmax(0, 1fr); padding: 0; max-width: 100vw; overflow-x: hidden; }
  .auth-side { padding: 0 16px; min-width: 0; width: 100%; box-sizing: border-box; }
  .auth-form { width: 100%; max-width: 380px; box-sizing: border-box; }
  .auth-side .logo { height: 64px; }
  .auth-stage { display: none; }
}
