.auth-page,
.auth-page * {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans, "Noto Sans KR", "Noto Sans", "DM Sans", Arial, sans-serif);
  background: #f8fafc;
  color: #0f172a;
}

.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 32px 16px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

.auth-card h1 {
  margin: 0 0 24px;
  font-size: 1.5rem;
  line-height: 1.25;
  text-align: center;
  color: var(--navy, #1a2744);
}

.auth-card form {
  width: 100%;
}

.auth-card label {
  display: block;
  margin-bottom: 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
}

.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"] {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.4;
  background: #fff;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}

.auth-remember input {
  flex: 0 0 auto;
}

.auth-card .offer-btn {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 8px;
  padding: 11px 16px;
  border-radius: 8px;
  border: none;
  background: var(--wing, #0ea5e9);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.auth-card .offer-btn:hover {
  background: var(--wing-light, #38bdf8);
}

.auth-error {
  color: #dc2626;
  font-size: 0.8125rem;
  margin: -8px 0 12px;
}

.auth-flash {
  color: #059669;
  margin-bottom: 16px;
}

.auth-switch {
  margin-top: 20px;
  text-align: center;
  font-size: 0.875rem;
}

.auth-switch a {
  color: var(--wing, #0ea5e9);
  font-weight: 600;
}

.topbar-logout-form {
  display: inline;
  margin: 0;
}

.topbar-logout-form button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  padding: 0;
}

.topbar-user {
  margin-right: 8px;
  opacity: 0.9;
}
