@font-face {
  font-family: system-ui-zh;
  src: local("Segoe UI"), local("Microsoft YaHei"), local("PingFang SC"), local("Hiragino Sans GB"), local("Arial");
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  background-color: #1e293b;
  background-image: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.7)), url('images/client-login-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

body {
  margin: 0;
  font-family: system-ui-zh, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1a1a1a;
}

.page {
  width: 100%;
  max-width: 420px;
  margin: 0;
  padding-bottom: 0;
  padding-top: calc(env(safe-area-inset-top, 0px) + 12px);
}

.login-center {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: transparent;
}

.close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.8);
  color: #333;
  font-size: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.top-title {
  font-size: 16px;
  font-weight: 600;
}

.welcome-banner {
  position: relative;
  margin: 20px 16px 0;
  padding: 0 16px 20px;
  text-align: center;
}
.welcome-text {
  position: relative;
  z-index: 2;
}
.welcome-title {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.welcome-sub {
  margin-top: 8px;
  font-size: 16px;
  color: #e5e7eb;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  font-weight: 500;
}
.welcome-art {
  display: none;
}

.login-card {
  padding: 14px;
  margin-top: auto;
  margin-bottom: auto;
}
.login-title {
  padding: 4px 2px 10px;
  font-weight: 700;
  color: #374151;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  background: #fff;
}
.icon {
  width: 20px;
  text-align: center;
  color: #6b7280;
}
.input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: #111827;
}
.input::placeholder {
  color: #9ca3af;
}
.sms-btn {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 8px;
  border: none;
  color: #fff;
  background: #2c7be5;
  font-weight: 600;
}
.sms-btn:disabled {
  background: #9dbbe9;
}
.login-btn {
  margin-top: 4px;
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  color: #fff;
  background: linear-gradient(90deg, #59a7ff, #2c7be5);
  box-shadow: 0 6px 16px rgba(44,123,229,0.35);
  font-size: 16px;
  font-weight: 700;
}

.hero {
  position: relative;
  margin: 4px 16px 0;
  padding: 24px 16px 32px;
  border-radius: 18px;
  background: linear-gradient(180deg, #9fd6ff 0%, #cbe7ff 70%, #eaf6ff 100%);
  box-shadow: 0 8px 20px rgba(69,145,235,0.18);
}

.case-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  position: relative;
  z-index: 2;
}

.case-select-wrapper {
  margin: 16px 16px 0;
  position: relative;
}

.case-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid #e0e6ed;
  border-radius: 12px;
  background-color: #fff;
  color: #1a1a1a;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.762L10.825 4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.case-select:focus {
  border-color: #2c7be5;
  box-shadow: 0 4px 12px rgba(44,123,229,0.1);
}

.total-count {
  padding: 12px 16px 4px;
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
  text-shadow: none;
}

.code {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: #2c7be5;
}

.year {
  font-weight: 600;
}
.num {
  font-weight: 600;
}

.status {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #0a7a55;
  background: #d9f2e7;
  border: 1px solid #bde6d8;
}

.card {
  margin: 12px 16px 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.details {
  padding: 6px 12px;
}

.row {
  display: flex;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid #f0f2f5;
}
.row:last-child {
  border-bottom: none;
}
.label {
  flex: 0 0 100px;
  font-size: 14px;
  color: #6b7280;
}
.value {
  flex: 1;
  font-size: 14px;
  color: #111827;
}
.link {
  margin-left: auto;
  font-size: 14px;
  color: #2c7be5;
  text-decoration: none;
  font-weight: 600;
}
.link:active {
  opacity: 0.8;
}

.contact {
  padding: 12px;
}
.contact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffe7e7 0%, #ffdede 100%);
  color: #d74343;
  font-weight: 700;
}
.contact-body {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.contact-text {
  font-size: 14px;
  color: #374151;
}
.phone {
  font-weight: 700;
  color: #111827;
}
.contact-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(90deg, #4ea1ff, #2c7be5);
  box-shadow: 0 6px 16px rgba(44,123,229,0.35);
  font-weight: 600;
}

.tips {
  padding: 12px 14px 16px;
}
.tips-title {
  font-weight: 700;
  color: #374151;
  padding: 4px 2px 10px;
}
.tips-list {
  margin: 0;
  padding-left: 18px;
  color: #4b5563;
}
.tips-list li {
  margin: 6px 0;
  line-height: 1.5;
}

@media (max-width: 360px) {
  .label { flex-basis: 92px; }
  .page { max-width: 360px; }
}

/* Flat Design & Seamless Blocks */
.case-seamless-group {
  margin: 16px 16px 24px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: none; /* Flat */
}

.case-seamless-group .hero {
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  background: #f0f7ff; /* Very light blue */
  padding: 20px 20px 16px;
  border-bottom: 1px solid #eef2f6;
}

.case-seamless-group .case-pill {
  background: transparent;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

.case-seamless-group .card {
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
  backdrop-filter: none;
}

.case-seamless-group .details {
  padding: 0;
}

.case-seamless-group .row {
  padding: 14px 20px;
  border-bottom: 1px solid #f1f5f9;
}
.case-seamless-group .row:last-child {
  border-bottom: none;
}

.case-seamless-group .contact {
  padding: 16px 20px;
  background: #fcfcfc;
  border-top: 1px solid #f1f5f9;
}

.case-seamless-group .contact-head {
  margin-bottom: 12px;
}

.case-seamless-group .badge {
  background: #ffebeb; /* Flat red background */
  box-shadow: none;
}

.case-seamless-group .contact-btn {
  background: #2c7be5; /* Flat blue */
  box-shadow: none;
}

.tips-flat {
  padding: 0 20px 24px;
}
.tips-flat .tips-title {
  padding-left: 0;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 600;
}
.tips-flat .tips-list {
  padding-left: 16px;
  color: #9ca3af;
  font-size: 13px;
}

.case-body {
  background: #f8fafc;
  background-image: none;
}

.case-body .case-select {
  box-shadow: none;
  background-color: #fff;
  border: 1px solid #e2e8f0;
}
