/* =============================================================
   auth.css — Login / Register pages
   เทศบาลเมืองดอนหัวฬ่อ · ThaiDataTech
   ============================================================= */

/* ── Page layout ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f4ff 0%, #f5f8ff 60%, #eef6f8 100%);
  padding: 24px 16px;
  position: relative;
  overflow: hidden;
}

/* decorative circles — เหมือน footer/page-banner */
.auth-page::before {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(26,74,138,.06);
  pointer-events: none;
}
.auth-page::after {
  content: "";
  position: absolute;
  left: -40px; bottom: -80px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(127,119,221,.05);
  pointer-events: none;
}

/* ── Card ── */
.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 0.5px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 4px 32px rgba(26,74,138,.08);
  position: relative;
  z-index: 1;
}

/* ── Logo ── */
.auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  text-align: center;
  text-decoration: none;
}
.auth-logo-circle {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1a4a8a, #2460b0);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(26,74,138,.25);
}
.auth-logo-name {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}
.auth-logo-en {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 1px;
}

/* ── Title ── */
.auth-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  text-align: center;
  margin-bottom: 6px;
}
.auth-subtitle {
  font-size: 13px;
  color: #6b7280;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ── Divider ── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #d1d5db;
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 0.5px;
  background: #e5e7eb;
}

/* ── Social buttons ── */
.auth-social-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-social-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: 10px;
  border: 0.5px solid #e5e7eb;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s, box-shadow .15s;
  width: 100%;
}
.auth-social-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.auth-social-btn-icon {
  width: 24px; height: 24px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.auth-social-btn-label { flex: 1; text-align: center; }

/* LINE */
.auth-btn-line .auth-social-btn-icon { background: #06C755; color: #fff; }
.auth-btn-line:hover { border-color: #06C755; background: #f0fff4; }

/* Facebook */
.auth-btn-fb .auth-social-btn-icon { background: #1877F2; color: #fff; }
.auth-btn-fb:hover { border-color: #1877F2; background: #eff6ff; }

/* Google */
.auth-btn-google .auth-social-btn-icon { background: #fff; border: 0.5px solid #e5e7eb; }
.auth-btn-google:hover { border-color: #EA4335; background: #fff8f7; }

/* ── Footer links ── */
.auth-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
}
.auth-footer a {
  color: #185FA5;
  font-weight: 500;
  text-decoration: none;
}
.auth-footer a:hover { text-decoration: underline; }

/* ── Note ── */
.auth-note {
  margin-top: 16px;
  padding: 10px 14px;
  background: #f9fafb;
  border-radius: 8px;
  border: 0.5px solid #f3f4f6;
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
  line-height: 1.6;
}
.auth-note a { color: #185FA5; text-decoration: none; }
.auth-note a:hover { text-decoration: underline; }

/* ── Back link ── */
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
  transition: color .12s;
  position: relative;
  z-index: 1;
}
.auth-back:hover { color: #185FA5; }
.auth-back i { font-size: 14px; }

/* ── Responsive ── */
@media (max-width: 480px) {
  .auth-card    { padding: 24px 20px; }
  .auth-title   { font-size: 16px; }
}
