/* ==========================================================================
   upsense — Authentication Pages (Login / Signup)
   ========================================================================== */

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F8F8F8;
  padding: 2rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.auth-title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.auth-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.auth-field label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.auth-hint {
  font-weight: 400;
  color: var(--text-muted);
}

.auth-input {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  outline: none;
  background: white;
  transition: border-color 0.2s ease;
}

.auth-input:focus {
  border-color: var(--accent);
}

.auth-input::placeholder {
  color: var(--text-muted);
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-remember label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

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

.auth-btn {
  display: block;
  width: 100%;
  padding: 0.75rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-inverse);
  background: var(--accent);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 0.5rem;
}

.auth-btn:hover {
  background: var(--accent-hover);
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.auth-footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.auth-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-link--muted {
  font-weight: 400;
  color: var(--text-muted);
}

.auth-flash {
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.auth-flash--notice {
  background: rgba(61, 139, 107, 0.1);
  color: var(--type-narrative);
}

.auth-flash--alert {
  background: rgba(212, 85, 58, 0.1);
  color: var(--type-curation);
}

#error_explanation {
  background: rgba(212, 85, 58, 0.06);
  border: 1px solid rgba(212, 85, 58, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

#error_explanation h2 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--type-curation);
  margin-bottom: 0.4rem;
}

#error_explanation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#error_explanation li {
  font-size: 0.78rem;
  color: var(--type-curation);
  margin-bottom: 0.2rem;
}
