/* 登入 / 註冊 — Modern High-End Auth（依 ui.md） */

body.auth-body,
body {
  background: #f1f5f9 !important;
  background-image:
    radial-gradient(ellipse at 12% 18%, rgba(99, 102, 241, 0.07), transparent 42%),
    radial-gradient(ellipse at 88% 12%, rgba(148, 163, 184, 0.18), transparent 45%),
    linear-gradient(145deg, #f8fafc 0%, #f1f5f9 42%, #e7e5e4 100%) !important;
  background-attachment: fixed !important;
  min-height: 100vh;
}

/* —— Header —— */
.navbar-white {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
  box-shadow: none !important;
}
.navbar-white .navbar-brand {
  color: #1e293b !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  font-size: 18px !important;
}
.navbar-white .navbar-nav > li > a {
  color: #64748b !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  transition: color 0.2s ease;
}
.navbar-white .navbar-nav > li > a:hover {
  color: #4f46e5 !important;
  background: transparent !important;
}
.navbar-white .navbar-nav > li > a.is-active {
  color: #4f46e5 !important;
  font-weight: 600 !important;
}
.navbar-white .navbar-toggle .icon-bar {
  background: #334155;
}

/* —— Content shell —— */
.content {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 16px 40px;
  background: transparent !important;
}

#content-container.container {
  max-width: 440px;
  width: 100%;

}

/* —— Card —— */
.user-section.login-section {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 24px;
  padding: 36px 36px 40px;
  box-shadow:
    0 20px 40px -15px rgba(15, 23, 42, 0.08),
    0 8px 16px -8px rgba(15, 23, 42, 0.04);
  color: #0f172a;
}

@media (max-width: 480px) {
  .user-section.login-section {
    padding: 28px 22px 32px;
    border-radius: 20px;
  }
}

/* —— Tabs —— */
.logon-tab {
  display: flex;
  margin: 0 0 32px;
  border-bottom: 1px solid #f1f5f9;
  background: transparent;
}
.logon-tab a {
  flex: 1;
  text-align: center;
  padding: 0 8px 14px;
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.logon-tab a:hover {
  color: #64748b;
  text-decoration: none;
}
.logon-tab a.active {
  color: #0f172a;
  font-weight: 600;
  border-bottom-color: #4f46e5;
}

/* —— Form —— */
.login-section .form-group {
  margin-bottom: 20px;
}
.login-section .control-label {
  display: block;
  color: #334155;
  font-weight: 500;
  font-size: 13px;
  margin-bottom: 6px;
  padding: 0;
}
.login-section .form-control {
  background: rgba(248, 250, 252, 0.7);
  border: 1px solid #e2e8f0;
  color: #0f172a;
  height: auto;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: none;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.login-section .form-control:focus {
  background: #fff;
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
  outline: none;
}
.login-section .form-control::placeholder {
  color: #94a3b8;
}

.login-section .auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 13px;
}
.login-section .auth-row .checkbox {
  margin: 0;
  padding: 0;
}
.login-section .auth-row .checkbox label {
  color: #64748b;
  font-weight: 400;
  font-size: 13px;
  padding-left: 0;
}
.login-section .auth-row .checkbox input[type="checkbox"] {
  margin-right: 6px;
  accent-color: #4f46e5;
}
.login-section .btn-forgot {
  color: #4f46e5 !important;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}
.login-section .btn-forgot:hover {
  color: #4338ca !important;
  text-decoration: underline;
}

/* —— Primary button —— */
.login-section .btn-primary,
.login-section .btn-auth-primary {
  background: #4f46e5 !important;
  border: none !important;
  color: #fff !important;
  font-weight: 500 !important;
  font-size: 15px !important;
  border-radius: 12px !important;
  height: auto !important;
  min-height: 50px;
  padding: 14px 16px !important;
  box-shadow: 0 10px 20px -6px rgba(79, 70, 229, 0.35) !important;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.login-section .btn-primary:hover,
.login-section .btn-primary:focus,
.login-section .btn-auth-primary:hover,
.login-section .btn-auth-primary:focus {
  background: #4338ca !important;
  color: #fff !important;
  box-shadow: 0 12px 24px -6px rgba(79, 70, 229, 0.4) !important;
}

/* —— Social buttons（白底灰框） —— */
.login-or-wrap {
  position: relative;
  text-align: center;
  margin: 24px 0 16px;
}
.login-or-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid #f1f5f9;
}
.login-or-wrap span {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  padding: 0 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.login-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.login-section .btn-social {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
  font-weight: 500 !important;
  font-size: 18px !important;
  border-radius: 12px !important;
  min-height: 48px;
  padding: 12px 16px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  text-decoration: none !important;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.login-section .btn-social:hover,
.login-section .btn-social:focus {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  text-decoration: none !important;
}
.btn-social .social-icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.btn-social .social-icon.fb {
  color: #1877f2;
  font-weight: 800;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 28px;
  line-height: 1;
}
.btn-social .social-icon.line {
  display: inline-block;
  width: 45px;
  height: 25px;
  border-radius: 4px;
  background: #06c755;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 25px;
  text-align: center;
}

/* —— Footer links —— */
.auth-footer-link {
  margin-top: 28px;
  text-align: center;
  font-size: 14px;
  color: #64748b;
}
.auth-footer-link a {
  color: #4f46e5 !important;
  font-weight: 600;
  text-decoration: none;
}
.auth-footer-link a:hover {
  text-decoration: underline;
}

.login-section .btn-default.no-border {
  display: none; /* 改用文字連結 */
}

/* —— Empty state —— */
.login-empty {
  text-align: center;
  padding: 36px 12px;
  color: #64748b;
  font-size: 15px;
}

/* —— Page footer —— */
.footer {
  background: transparent !important;
  border: none !important;
  padding: 16px 0 28px !important;
  margin: 0 !important;
}
.footer .copyright,
.footer p {
  color: #94a3b8 !important;
  font-size: 12px !important;
  text-align: center;
  margin: 0;
}
.footer a {
  color: #94a3b8 !important;
}

/* 驗證碼區塊對齊 */
.login-section .input-group .form-control {
  border-radius: 12px 0 0 12px;
}
.login-section .input-group-btn .btn {
  border-radius: 0 12px 12px 0 !important;
  min-height: 48px;
  background: #4f46e5 !important;
  border-color: #4f46e5 !important;
  color: #fff !important;
}

/* 隱藏註冊手機欄（DB 欄位保留，僅 UI 隱藏） */
.register-hide-mobile {
  display: none !important;
}

/* 舊 class 相容：隱藏生硬的彩色社群鈕樣式 */
.login-section .btn-info.btn-block,
.login-section .btn-success.btn-block {
  /* 由 .btn-social 覆寫 */
}
