* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, rgba(59, 130, 246, 0.18), transparent 32%),
    linear-gradient(160deg, #eef4ff 0%, #f8fbff 42%, #eef2ff 100%);
  color: #0f172a;
}

.shell {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.shell::before,
.shell::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.55;
}

.shell::before {
  top: 72px;
  left: -80px;
  width: 240px;
  height: 240px;
  background: rgba(96, 165, 250, 0.26);
}

.shell::after {
  right: -90px;
  bottom: 120px;
  width: 280px;
  height: 280px;
  background: rgba(14, 165, 233, 0.18);
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 28px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-badge {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.28);
}

.brand-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.brand-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: #64748b;
}

.topbar-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #334155;
  font-size: 13px;
  backdrop-filter: blur(10px);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.16);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 420px);
  align-items: center;
  gap: 32px;
}

.hero-copy {
  padding-right: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 600;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero-copy p {
  margin: 18px 0 0;
  max-width: 620px;
  font-size: 16px;
  line-height: 1.8;
  color: #475569;
}

.feature-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-item {
  padding: 16px 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.feature-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.feature-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #64748b;
}

.card-wrap {
  position: relative;
}

.card-glow {
  position: absolute;
  inset: -14px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(14, 165, 233, 0.08));
  filter: blur(10px);
  opacity: 0.95;
}

.card {
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 28px;
  padding: 30px 26px 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px);
}

.card-tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}

.card h2 {
  margin: 0;
  font-size: 28px;
}

.card p {
  margin: 10px 0 24px;
  line-height: 1.7;
  color: #64748b;
}

form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

label {
  font-size: 14px;
  font-weight: 700;
  color: #334155;
}

input {
  width: 100%;
  border: 1px solid #dbe3f1;
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 15px;
  color: #0f172a;
  background: #f8fbff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input::placeholder {
  color: #94a3b8;
}

input:focus {
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.login-button {
  margin-top: 6px;
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 55%, #0ea5e9 100%);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.3);
  cursor: pointer;
}

.login-button:hover {
  filter: brightness(1.02);
}

.sub-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
  font-size: 13px;
  color: #64748b;
}

.error {
  min-height: 22px;
  font-size: 14px;
  color: #dc2626;
}

.notice {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.notice-title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.notice-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #64748b;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 10px;
  font-size: 13px;
  color: #64748b;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer a,
.helper-button,
.sub-actions a {
  color: #2563eb;
  text-decoration: none;
}

.footer a:hover,
.helper-button:hover,
.sub-actions a:hover {
  text-decoration: underline;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(6px);
}

.modal-overlay.is-open {
  display: flex;
}

.modal-dialog {
  width: min(100%, 520px);
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #fff;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 12px;
}

.modal-title {
  margin: 0;
  font-size: 20px;
  color: #0f172a;
}

.modal-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: #64748b;
}

.modal-close {
  border: 0;
  background: #eff6ff;
  color: #1d4ed8;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 18px;
  cursor: pointer;
}

.modal-body {
  padding: 0 22px 22px;
}

.modal-list {
  margin: 0;
  padding-left: 20px;
  color: #475569;
}

.modal-list li {
  margin: 0 0 10px;
  line-height: 1.8;
}

.modal-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  line-height: 1.7;
  color: #64748b;
}

.helper-button {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 13px;
  cursor: pointer;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-right: 0;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 24px 16px 20px;
  }

  .topbar,
  .footer,
  .sub-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .card {
    padding: 24px 18px 20px;
    border-radius: 22px;
  }

  .hero-copy h1 {
    font-size: 32px;
  }
}
