:root {
  --navy: #123b70;
  --navy-dark: #0c2d57;
  --sky: #dceeff;
  --sky-soft: #eff8ff;
  --ink: #23364d;
  --muted: #718097;
  --line: #dce5ef;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft JhengHei", "Noto Sans TC", Arial, sans-serif;
  background: var(--white);
}

.logon-page {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 40px 24px;
  overflow: hidden;
  isolation: isolate;
}

.orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: var(--sky);
  opacity: 0.72;
}

.orb-top {
  top: -190px;
  right: -135px;
  width: 440px;
  height: 440px;
}

.orb-bottom {
  bottom: -170px;
  left: -125px;
  width: 365px;
  height: 365px;
  background: #e8f4ff;
}

.logon-card {
  width: min(100%, 430px);
  padding: 48px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(220, 229, 239, 0.9);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(18, 59, 112, 0.1);
}

.logon-heading {
  margin-bottom: 34px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #4d80b7;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

h1 {
  margin: 0;
  color: var(--navy);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.intro {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.logon-form {
  display: grid;
  gap: 22px;
}

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

.field-group label,
.remember-option {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder {
  color: #a3afbd;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: #5f92c6;
  box-shadow: 0 0 0 4px rgba(95, 146, 198, 0.15);
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: -3px;
}

.remember-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
}

.remember-option input {
  width: 15px;
  height: 15px;
  accent-color: var(--navy);
}

.help-link {
  color: #4d80b7;
  font-size: 0.82rem;
  text-decoration: none;
}

.help-link:hover,
.help-link:focus-visible {
  color: var(--navy);
  text-decoration: underline;
}

button {
  min-height: 50px;
  color: var(--white);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  border: 0;
  border-radius: 9px;
  background: var(--navy);
  transition: background 0.2s ease, transform 0.2s ease;
}

button:hover,
button:focus-visible {
  background: var(--navy-dark);
  transform: translateY(-1px);
}

button:focus-visible,
.help-link:focus-visible {
  outline: 3px solid rgba(95, 146, 198, 0.35);
  outline-offset: 3px;
}

.logon-footer {
  margin-top: 34px;
  color: #9aa7b6;
  font-size: 0.72rem;
  text-align: center;
}

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

  .logon-card {
    padding: 36px 28px;
    border-radius: 16px;
  }

  .orb-top {
    top: -160px;
    right: -180px;
    width: 340px;
    height: 340px;
  }

  .orb-bottom {
    bottom: -150px;
    left: -155px;
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 390px) {
  .logon-card {
    padding: 32px 22px;
  }

  .form-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}
