:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: #10283f;
  background: #f4f7f9;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 84% 10%, rgba(193, 224, 216, .72), transparent 24rem),
    linear-gradient(135deg, #ecf3f6 0%, #f8fbfc 47%, #eef4f1 100%);
}

button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .68; }

.shell {
  width: min(1120px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(310px, .9fr) minmax(360px, 1.1fr);
  gap: clamp(24px, 5vw, 84px);
  align-items: center;
  padding: 48px 0;
}

.brand-panel { padding: 24px 10px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #10283f;
  font-size: 18px;
  font-weight: 750;
  text-decoration: none;
  letter-spacing: .04em;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: #e56d37;
  box-shadow: 0 6px 14px rgba(195, 80, 36, .22);
}

.brand-copy { max-width: 440px; margin: clamp(64px, 13vh, 144px) 0 50px; }
.eyebrow { margin: 0 0 12px; color: #598076; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 20px; font-size: clamp(38px, 5vw, 60px); line-height: 1.14; letter-spacing: -.04em; }
h2 { margin-bottom: 8px; font-size: 30px; letter-spacing: -.035em; }
h3 { margin-bottom: 14px; font-size: 20px; }
.brand-copy > p:last-child { max-width: 390px; color: #526b7b; font-size: 16px; line-height: 1.8; }

.security-note { display: flex; align-items: center; gap: 9px; color: #657b8a; font-size: 13px; }
.security-note span { color: #46a682; font-size: 19px; line-height: 1; }

.workspace { min-width: 0; }
.card, .dashboard, .loading-view {
  border: 1px solid rgba(155, 178, 189, .4);
  border-radius: 20px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 18px 54px rgba(24, 54, 71, .11);
  backdrop-filter: blur(12px);
}

.card { width: min(100%, 470px); margin-left: auto; padding: clamp(30px, 5vw, 48px); }
.muted { margin-bottom: 32px; color: #6d818e; font-size: 14px; }
label { display: block; margin: 20px 0 8px; color: #375064; font-size: 13px; font-weight: 700; }
input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #cbd8de;
  border-radius: 9px;
  outline: none;
  color: #193146;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}
input:focus { border-color: #3d9880; box-shadow: 0 0 0 4px rgba(61, 152, 128, .14); }

.password-field { position: relative; }
.password-field input { padding-right: 60px; }
.text-button {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  padding: 6px 8px;
  border: 0;
  color: #2e806c;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.form-message { min-height: 20px; margin: 14px 0 0; color: #bd3f3f; font-size: 13px; line-height: 1.5; visibility: hidden; }
.form-message.visible { visibility: visible; }
.primary-button, .secondary-button {
  min-height: 48px;
  border-radius: 9px;
  font-weight: 750;
  transition: transform .16s ease, background .16s ease;
}
.primary-button { width: 100%; margin-top: 4px; border: 1px solid #246e5d; color: #fff; background: #287d69; }
.primary-button:hover:not(:disabled) { background: #1e6958; transform: translateY(-1px); }
.secondary-button { padding: 0 16px; border: 1px solid #c8d6dd; color: #314e60; background: #fff; }
.secondary-button:hover:not(:disabled) { background: #f1f6f7; }
.form-footnote { margin: 20px 0 0; color: #82939e; font-size: 12px; line-height: 1.6; }

.loading-view { display: grid; min-height: 272px; place-content: center; gap: 16px; color: #69808c; text-align: center; }
.spinner { width: 28px; height: 28px; margin: 0 auto; border: 3px solid #d7e6e2; border-top-color: #31816d; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.dashboard { padding: clamp(26px, 5vw, 46px); }
.dashboard-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 28px; border-bottom: 1px solid #e4ecee; }
.dashboard-header h2 { margin-bottom: 0; }
.notice { display: grid; gap: 5px; margin: 26px 0; padding: 16px 18px; border-left: 3px solid #5a9f8b; border-radius: 0 10px 10px 0; color: #426473; background: #edf7f4; font-size: 14px; line-height: 1.55; }
.notice strong { color: #236956; }
.status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.status-card { min-height: 156px; padding: 18px; border: 1px solid #e2eaed; border-radius: 12px; background: #fff; }
.status-label { margin-bottom: 17px; color: #718692; font-size: 12px; font-weight: 700; }
.status-value { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: #274555; font-size: 16px; font-weight: 760; }
.status-detail { margin-bottom: 0; color: #7b8c96; font-size: 12px; line-height: 1.5; }
.status-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; }
.status-dot.good { background: #3aab82; box-shadow: 0 0 0 3px rgba(58, 171, 130, .13); }
.status-dot.checking { background: #d29b3e; animation: pulse 1.2s infinite; }
.status-dot.waiting { background: #9baab3; }
.status-dot.bad { background: #cd5656; }
@keyframes pulse { 50% { opacity: .35; } }

.next-step { margin-top: 18px; padding: 24px; border-radius: 12px; color: #254352; background: #f3f7f8; }
.next-step h3 { margin-bottom: 12px; }
.next-step ol { margin: 0; padding-left: 21px; color: #607886; font-size: 14px; line-height: 1.9; }
.hidden { display: none !important; }

@media (max-width: 780px) {
  .shell { width: min(100% - 28px, 560px); grid-template-columns: 1fr; gap: 14px; padding: 26px 0; }
  .brand-panel { padding: 12px 2px 20px; }
  .brand-copy { margin: 44px 0 22px; }
  h1 { font-size: 40px; }
  .card { margin: 0; }
  .status-grid { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .dashboard-header { align-items: stretch; flex-direction: column; }
  .secondary-button { width: 100%; }
}
