/* =============================================
   Auth Pages - Login / Register
   ============================================= */

body {
  background: #f8f9fb;
  font-family: -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-wrap {
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.auth-logo .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #6366f1;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.auth-logo .text {
  font-size: 22px;
  font-weight: 800;
  color: #1a1a2e;
}

.auth-logo .text span { color: #6366f1; }

.auth-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e9ecef;
  padding: 36px 32px;
  box-shadow: 0 4px 30px rgba(0,0,0,.04);
}

.auth-card h2 {
  font-size: 22px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.auth-card .subtitle {
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 28px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: #343a40;
  margin-bottom: 6px;
}

.form-control {
  border-radius: 10px;
  border-color: #dee2e6;
  padding: 10px 14px;
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}

.form-control:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}

.input-group .form-control { border-right: none; }

.input-group-text {
  background: #fff;
  border-color: #dee2e6;
  border-left: none;
  border-radius: 0 10px 10px 0;
  cursor: pointer;
  color: #adb5bd;
}

.input-group:focus-within .input-group-text { border-color: #6366f1; }

.btn-primary {
  background: #6366f1;
  border-color: #6366f1;
  border-radius: 10px;
  padding: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: all .15s;
}

.btn-primary:hover {
  background: #4f46e5;
  border-color: #4f46e5;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(99,102,241,.3);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #adb5bd;
  font-size: 13px;
  margin: 20px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e9ecef;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: #6c757d;
}

.auth-footer a {
  color: #6366f1;
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover { text-decoration: underline; }

.hint-box {
  background: #f8f9fb;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  color: #6c757d;
  margin-top: 20px;
  text-align: center;
}
