* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1d2330;
  background: radial-gradient(circle at 20% 10%, rgba(231, 237, 255, 0.9), rgba(250, 250, 252, 0.9) 55%),
    radial-gradient(circle at 78% 82%, rgba(255, 231, 228, 0.85), rgba(255, 255, 255, 0) 55%);
}

.login-shell {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 28px 18px;
  position: relative;
  overflow: hidden;
}

.login-hero {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 30% 30%, rgba(17, 85, 255, 0.08), transparent 50%),
    radial-gradient(circle at 72% 60%, rgba(255, 64, 64, 0.1), transparent 55%),
    linear-gradient(135deg, rgba(20, 24, 34, 0.03), rgba(255, 255, 255, 0));
  filter: blur(0px);
}

.login-panel {
  width: min(420px, 100%);
  position: relative;
  padding: 26px 22px 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  text-align: center;
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.brand-mark {
  font-family: "Outfit", "Noto Sans TC", system-ui, sans-serif;
  display: grid;
  gap: 6px;
}

.brand-mark-main {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 38px;
  line-height: 1;
  display: inline-flex;
  gap: 12px;
  justify-content: center;
  align-items: baseline;
  text-transform: uppercase;
}

.brand-dark {
  color: #2b313d;
  text-shadow: 0 12px 26px rgba(43, 49, 61, 0.22);
}

.brand-accent {
  color: #e12b2b;
  text-shadow: 0 12px 26px rgba(225, 43, 43, 0.22);
}

.brand-tagline {
  font-size: 14px;
  color: rgba(43, 49, 61, 0.7);
  letter-spacing: 0.02em;
  font-style: italic;
}

.brand-subtitle {
  margin: 0;
  font-size: 14px;
  color: rgba(15, 23, 42, 0.72);
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-field {
  display: grid;
  gap: 8px;
  text-align: left;
}

.login-field span {
  font-size: 13px;
  color: rgba(15, 23, 42, 0.75);
  font-weight: 600;
}

.login-field input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.95);
  font-size: 16px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.login-field input:focus {
  border-color: rgba(18, 84, 248, 0.45);
  box-shadow: 0 0 0 4px rgba(18, 84, 248, 0.12);
}

.login-error {
  margin: 0;
  min-height: 18px;
  font-size: 13px;
  color: #c52a1f;
}

.login-button {
  width: 100%;
  padding: 13px 16px;
  border-radius: 16px;
  border: none;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #2f2f35, #12121a);
  color: #fff;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
  box-shadow: 0 16px 34px rgba(14, 18, 27, 0.18);
}

.login-button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.4);
  opacity: 0.55;
  box-shadow: none;
}

.login-button:not(:disabled):active {
  transform: translateY(1px);
}

.login-hint {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.6);
  line-height: 1.5;
}

@media (max-width: 420px) {
  .login-panel {
    padding: 22px 18px 20px;
    border-radius: 20px;
  }

  .brand-mark-main {
    font-size: 34px;
    gap: 10px;
  }
}
