:root {
  color-scheme: light;
  font-family:
    Inter,
    "Noto Sans TC",
    system-ui,
    -apple-system,
    sans-serif;
  background: #f2f5f9;
  color: #152333;
  line-height: 1.55;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 68px;
  padding: 0.8rem 5vw;
  color: #fff;
  background: #0a3157;
  box-shadow: 0 2px 16px #071c3033;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #27a6df;
}
nav {
  display: flex;
  gap: 1.25rem;
  margin-right: auto;
}
nav a {
  color: #dcefff;
  text-decoration: none;
  font-weight: 650;
}
nav a:hover,
nav a:focus-visible {
  color: #fff;
}
main {
  width: min(1040px, 92vw);
  margin: 2rem auto 4rem;
  display: grid;
  gap: 1.2rem;
}
.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  overflow: hidden;
  min-height: 610px;
  border: 1px solid #cfdae5;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 22px 60px #0a315721;
}
.auth-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
  color: #fff;
  background: linear-gradient(125deg, #092c4d 0%, #075d94 58%, #16a1ce 100%);
}
.auth-intro h1 {
  margin: 0.35rem 0 1rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.12;
}
.auth-intro > p:not(.eyebrow) {
  margin: 0;
  font-size: 1.02rem;
  color: #e3f4ff;
}
.eyebrow,
.step {
  margin: 0 0 0.25rem;
  color: #1483bd;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}
.auth-intro .eyebrow {
  color: #8ad9f4;
}
.auth-benefits {
  display: grid;
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.auth-benefits li {
  position: relative;
  padding-left: 1.65rem;
  color: #dff4ff;
}
.auth-benefits li::before {
  position: absolute;
  left: 0;
  content: "✓";
  color: #7ee0ff;
  font-weight: 900;
}
.auth-workspace {
  padding: clamp(1.35rem, 4vw, 3rem);
  background: #fff;
}
.auth-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  margin-bottom: 2rem;
  padding: 0.3rem;
  border-radius: 12px;
  background: #eef3f8;
}
.auth-switch a {
  padding: 0.65rem 0.4rem;
  border-radius: 9px;
  color: #52677a;
  text-align: center;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 750;
}
.auth-switch a[aria-current="page"] {
  color: #075d94;
  background: #fff;
  box-shadow: 0 3px 12px #14324d17;
}
.auth-panel {
  animation: panel-in 160ms ease-out;
}
.auth-panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
}
.panel-copy {
  margin: 0 0 1.2rem;
  color: #607386;
}
.email-field {
  margin-top: 1rem;
}
.dev-only-notice,
.dev-only-inline {
  border: 1px solid #e4b54d;
  border-radius: 9px;
  color: #5f4300;
  background: #fff7df;
}
.dev-only-notice {
  display: grid;
  gap: 0.2rem;
  margin: 0.8rem 0;
  padding: 0.75rem;
}
.dev-only-inline {
  margin: 0;
  padding: 0.5rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 800;
}
.button-wide {
  width: 100%;
  margin-top: 0.4rem;
}
.auth-help {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.15rem;
  font-size: 0.92rem;
}
.auth-help a,
.back-link {
  color: #075d94;
  font-weight: 750;
}
.back-link {
  display: inline-block;
  margin-top: 1.2rem;
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.card {
  background: #fff;
  border: 1px solid #d8e1eb;
  border-radius: 18px;
  padding: clamp(1.2rem, 3vw, 2rem);
  box-shadow: 0 10px 34px #102c4710;
}
.card h2 {
  margin: 0 0 1rem;
  font-size: 1.55rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}
.form-grid.wide,
.wide,
.form-grid .form-grid {
  grid-column: 1 / -1;
}
label {
  display: grid;
  gap: 0.35rem;
  margin: 0.8rem 0;
  font-weight: 700;
}
input,
select,
textarea,
button,
.button {
  font: inherit;
  border-radius: 9px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #aebdcd;
  padding: 0.72rem 0.8rem;
  color: #152333;
  background: #fff;
}
textarea {
  min-height: 7rem;
  resize: vertical;
}
button,
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #087bb7;
  padding: 0.72rem 1rem;
  color: #fff;
  background: #087bb7;
  cursor: pointer;
  text-decoration: none;
  font-weight: 750;
}
button:hover,
.button:hover {
  background: #05699e;
  border-color: #05699e;
}
.button-secondary {
  color: #075d94;
  background: #fff;
  border-color: #85b6d1;
}
.button-secondary:hover {
  color: #fff;
}
.button-quiet {
  background: transparent;
  border-color: #8eb7cf;
}
button:focus-visible,
.button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #f4b942;
  outline-offset: 2px;
}
.hidden {
  display: none !important;
}
.hint {
  margin: -0.25rem 0 0.9rem;
  color: #5b6d7e;
  font-size: 0.9rem;
}
.text-link {
  display: inline-block;
  margin-top: 1rem;
  color: #075d94;
  font-weight: 700;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}
.profile-item {
  margin: 0;
  padding: 0.8rem;
  border: 1px solid #e0e7ef;
  border-radius: 10px;
  background: #f8fafc;
}
.profile-item dt {
  color: #657789;
  font-size: 0.8rem;
  font-weight: 750;
}
.profile-item dd {
  margin: 0.2rem 0 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}
.application-item {
  margin-top: 0.8rem;
  padding: 0.8rem 1rem;
  border-left: 4px solid #0e8fc6;
  background: #eef8fc;
}
.download-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.download-list a {
  display: inline-flex;
  padding: 0.75rem 0.9rem;
  border-radius: 9px;
  color: #075d94;
  background: #eaf5fb;
  font-weight: 750;
  text-decoration: none;
}
.download-note {
  margin: -0.35rem 0 1.1rem;
  color: #5b6d7e;
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}
.download-card {
  display: flex;
  min-width: 0;
  min-height: 175px;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid #d8e5ee;
  border-radius: 12px;
  background: #f8fbfd;
}
.download-platform,
.download-architecture {
  display: block;
}
.download-platform {
  color: #0a3157;
  font-size: 1.05rem;
  font-weight: 850;
}
.download-architecture {
  margin-top: 0.15rem;
  color: #657789;
  font-size: 0.84rem;
}
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.download-button,
.official-download-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 0.75rem;
  border: 1px solid #087bb7;
  border-radius: 8px;
  color: #fff;
  background: #087bb7;
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
}
.download-button-secondary {
  color: #075d94;
  background: #fff;
}
.official-download-page {
  margin-top: 1rem;
}
.my-vpn-downloads {
  padding-bottom: 1.4rem;
  border-bottom: 1px solid #dce4ec;
}
.my-vpn-summary {
  margin: 1.25rem 0;
  color: #506779;
}
.manager-console {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #d5e5ef;
}
.manager-sync-state {
  padding: 0.8rem 1rem;
  border-left: 4px solid #d99100;
  border-radius: 8px;
  color: #5f4300;
  background: #fff7df;
}
.manager-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.manager-grid > section,
.manager-console > section {
  min-width: 0;
}
.manager-list {
  display: grid;
  gap: 0.65rem;
}
.manager-item,
.identity-manager-item {
  padding: 0.85rem;
  border: 1px solid #dce6ed;
  border-radius: 10px;
  background: #f8fbfd;
}
.manager-item,
.identity-manager-heading,
.manager-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}
.manager-item small,
.identity-manager-heading small {
  display: block;
  margin-top: 0.15rem;
  color: #657789;
}
.manager-role-form {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.85rem;
}
.identity-manager-item {
  display: grid;
  gap: 0.8rem;
}
.identity-policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}
.policy-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}
.policy-detail-grid fieldset {
  min-width: 0;
  margin: 0;
  padding: 0.75rem;
  border: 1px solid #cbd8e2;
  border-radius: 8px;
}
.policy-detail-grid legend {
  padding: 0 0.35rem;
  font-weight: 750;
}
.service-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
}
.service-option,
.checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.service-option {
  margin: 0;
  font-weight: 650;
}
.service-option input,
.checkbox-field input {
  width: auto;
}
.resource-options {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.7rem;
}
.resource-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-weight: 600;
}
.resource-option input {
  width: auto;
}
.status-pill {
  flex: 0 0 auto;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  color: #075d94;
  background: #e6f5fc;
  font-size: 0.78rem;
  font-weight: 800;
}
.button-danger {
  border-color: #b42318;
  color: #b42318;
  background: #fff;
}
.button-danger:hover {
  border-color: #8f1710;
  color: #fff;
  background: #b42318;
}
details {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid #dce4ec;
}
summary {
  cursor: pointer;
  color: #075d94;
  font-weight: 800;
}
#status:not(:empty) {
  position: sticky;
  top: 78px;
  z-index: 4;
  margin: 0;
  padding: 0.8rem 1rem;
  border-left: 4px solid #0d84bd;
  border-radius: 8px;
  color: #093d5c;
  background: #e8f6fc;
  box-shadow: 0 6px 18px #0a31571a;
}
footer {
  padding: 1.5rem;
  text-align: center;
  color: #66798b;
  border-top: 1px solid #d8e1eb;
}
.skip {
  position: fixed;
  left: 0.5rem;
  top: -5rem;
  z-index: 20;
  padding: 0.7rem;
  color: #0a3157;
  background: #fff;
}
.skip:focus {
  top: 0.5rem;
}
@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
  }
  nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }
  .auth-shell,
  .form-grid,
  .profile-grid,
  .download-grid,
  .manager-grid,
  .identity-policy-grid,
  .policy-detail-grid {
    grid-template-columns: 1fr;
  }
  .auth-shell {
    min-height: 0;
  }
  .auth-intro {
    padding: 2rem 1.4rem;
  }
  .auth-benefits {
    display: none;
  }
  .auth-workspace {
    padding: 1.25rem;
  }
  .auth-switch {
    margin-bottom: 1.4rem;
  }
  .auth-switch a {
    font-size: 0.82rem;
  }
  .auth-help {
    align-items: flex-start;
    flex-direction: column;
  }
  .form-grid .form-grid,
  .wide {
    grid-column: auto;
  }
}
