:root {
  color-scheme: light;
  --navy-950: #071426;
  --navy-900: #0a1b31;
  --navy-800: #102b4b;
  --blue-700: #006bc7;
  --blue-600: #0078d4;
  --cyan-400: #3cc9f2;
  --cyan-200: #a9eaff;
  --slate-900: #172033;
  --slate-700: #465168;
  --slate-500: #738096;
  --slate-300: #cfd7e3;
  --slate-200: #e4e9f1;
  --slate-100: #f2f5f9;
  --white: #ffffff;
  --danger: #b42318;
  --danger-bg: #fff1f0;
  --shadow: 0 22px 70px rgba(9, 27, 49, 0.15);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--slate-100);
  color: var(--slate-900);
}

body {
  min-height: 100vh;
  margin: 0;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.login-page {
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at 90% 10%, rgba(60, 201, 242, 0.2), transparent 28%),
    linear-gradient(135deg, #eef5fb 0%, #f9fbfd 52%, #e7f4fb 100%);
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(440px, 1.1fr);
  width: min(1060px, 100%);
  min-height: 650px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow);
}

.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 68px;
  color: var(--white);
  background:
    radial-gradient(circle at 25% 10%, rgba(80, 217, 255, 0.28), transparent 30%),
    linear-gradient(155deg, var(--navy-800), var(--navy-950) 72%);
}

.brand-panel::before,
.brand-panel::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(80, 217, 255, 0.18);
  border-radius: 50%;
}

.brand-panel::before {
  right: -190px;
  bottom: -210px;
  width: 500px;
  height: 500px;
}

.brand-panel::after {
  right: -80px;
  bottom: -100px;
  width: 280px;
  height: 280px;
}

.brand-mark {
  display: grid;
  width: 86px;
  height: 86px;
  margin-bottom: 50px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
}

.brand-mark img {
  width: 61px;
  height: 61px;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan-200);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow.blue {
  color: var(--blue-600);
}

.brand-panel h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(2.25rem, 4vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.brand-copy {
  position: relative;
  z-index: 1;
  max-width: 390px;
  margin: 26px 0 0;
  color: #bac8d8;
  font-size: 1rem;
  line-height: 1.7;
}

.security-note {
  position: absolute;
  bottom: 50px;
  left: 68px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a8b8ca;
  font-size: 0.82rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #51e59a;
  box-shadow: 0 0 0 5px rgba(81, 229, 154, 0.12);
}

.login-panel {
  display: grid;
  place-items: center;
  padding: 68px clamp(38px, 7vw, 90px);
}

.login-card {
  width: min(400px, 100%);
}

.lock-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 34px;
  place-items: center;
  border-radius: 12px;
  background: #eaf6fd;
  font-size: 1.15rem;
}

.login-card h2,
.hero-section h1,
.simple-card h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.muted {
  margin: 16px 0 34px;
  color: var(--slate-700);
  line-height: 1.65;
}

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

label {
  margin-top: 10px;
  color: var(--slate-700);
  font-size: 0.86rem;
  font-weight: 700;
}

input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  outline: none;
  color: var(--slate-900);
  background: var(--white);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(0, 120, 212, 0.12);
}

.primary-button,
.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  margin-top: 18px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-md);
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  box-shadow: 0 10px 24px rgba(0, 120, 212, 0.2);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.primary-button {
  justify-content: space-between;
  width: 100%;
}

.primary-button:hover,
.download-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 120, 212, 0.28);
}

.primary-button:disabled,
.secondary-button:disabled {
  opacity: 0.62;
  cursor: wait;
}

.support-copy {
  margin: 28px 0 0;
  color: var(--slate-500);
  font-size: 0.8rem;
  text-align: center;
}

.notice,
.error-message {
  margin: 22px 0 8px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.86rem;
  line-height: 1.5;
}

.notice {
  border: 1px solid #b9dff5;
  color: #075985;
  background: #ecf8ff;
}

.error-message {
  border: 1px solid #f1c0bb;
  color: var(--danger);
  background: var(--danger-bg);
}

.dashboard-page {
  background:
    radial-gradient(circle at 85% 0%, rgba(60, 201, 242, 0.15), transparent 24%),
    var(--slate-100);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  padding: 0 max(28px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid var(--slate-200);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--slate-900);
  text-decoration: none;
}

.header-brand img {
  width: 42px;
  height: 42px;
}

.header-brand span {
  display: grid;
  gap: 1px;
}

.header-brand strong {
  font-size: 0.96rem;
}

.header-brand small {
  color: var(--slate-500);
  font-size: 0.73rem;
}

.secondary-button {
  min-height: 40px;
  padding: 0 17px;
  border: 1px solid var(--slate-300);
  border-radius: 10px;
  color: var(--slate-700);
  background: var(--white);
  font-weight: 700;
  cursor: pointer;
}

.dashboard-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 80px;
}

.hero-section {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--slate-200);
}

.hero-copy {
  max-width: 650px;
  margin: 17px 0 0;
  color: var(--slate-700);
  font-size: 1.04rem;
  line-height: 1.65;
}

.verified-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid #b7e5cd;
  border-radius: 999px;
  color: #166534;
  background: #effbf4;
  font-size: 0.8rem;
  font-weight: 800;
}

.verified-badge span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: #21a35a;
  font-size: 0.7rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  margin: 48px 0 20px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.2rem;
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--slate-500);
  font-size: 0.82rem;
}

.download-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 30px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 12px 36px rgba(15, 35, 60, 0.06);
}

.file-icon {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(145deg, #e6f6ff, #d7f0fb);
}

.file-icon img {
  width: 58px;
  height: 58px;
}

.file-title-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.file-type {
  color: var(--blue-600);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.file-content h3 {
  margin: 6px 0 0;
  font-size: 1.22rem;
}

.file-content > p {
  margin: 10px 0 18px;
  color: var(--slate-700);
  font-size: 0.9rem;
  line-height: 1.55;
}

.version-badge {
  align-self: flex-start;
  padding: 5px 9px;
  border-radius: 7px;
  color: var(--slate-700);
  background: var(--slate-100);
  font-size: 0.7rem;
  font-weight: 800;
}

.file-meta {
  display: flex;
  gap: 28px;
  margin: 0;
}

.file-meta div {
  display: flex;
  gap: 6px;
}

.file-meta dt,
.file-meta dd {
  margin: 0;
  font-size: 0.76rem;
}

.file-meta dt {
  color: var(--slate-500);
}

.file-meta dd {
  color: var(--slate-700);
  font-weight: 800;
}

.download-button {
  min-width: 145px;
  margin: 0;
}

.info-banner {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid #cfe2ef;
  border-radius: 14px;
  background: #f5fbff;
}

.info-icon {
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue-600);
  font-family: Georgia, serif;
  font-weight: 800;
}

.info-banner strong {
  font-size: 0.84rem;
}

.info-banner p {
  margin: 4px 0 0;
  color: var(--slate-700);
  font-size: 0.8rem;
  line-height: 1.5;
}

.site-footer {
  padding: 26px;
  border-top: 1px solid var(--slate-200);
  color: var(--slate-500);
  background: var(--white);
  font-size: 0.75rem;
  text-align: center;
}

.simple-page {
  display: grid;
  place-items: center;
  padding: 28px;
  background: var(--slate-100);
}

.simple-card {
  width: min(480px, 100%);
  padding: 52px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}

.simple-card img {
  width: 72px;
  margin-bottom: 28px;
}

.simple-card .primary-button {
  width: auto;
}

@media (max-width: 840px) {
  .login-page {
    padding: 18px;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    min-height: 300px;
    padding: 44px;
  }

  .brand-mark {
    width: 68px;
    height: 68px;
    margin-bottom: 26px;
  }

  .brand-mark img {
    width: 48px;
    height: 48px;
  }

  .brand-panel h1 br {
    display: none;
  }

  .brand-copy {
    margin-top: 16px;
  }

  .security-note {
    display: none;
  }

  .login-panel {
    padding: 52px 38px;
  }

  .download-card {
    grid-template-columns: auto 1fr;
  }

  .file-action {
    grid-column: 1 / -1;
  }

  .download-button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 0 20px;
  }

  .header-brand small {
    display: none;
  }

  .dashboard-shell {
    width: min(100% - 28px, 1120px);
    padding-top: 48px;
  }

  .hero-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
  }

  .file-icon {
    width: 68px;
    height: 68px;
  }

  .file-icon img {
    width: 48px;
    height: 48px;
  }

  .file-title-row {
    flex-direction: column;
    gap: 10px;
  }

  .version-badge {
    align-self: flex-start;
  }

  .file-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .file-action {
    grid-column: auto;
  }
}
