:root { color-scheme: light; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-synthesis: none; text-rendering: optimizeLegibility; background: #fff; color: #1f2937; }
*, *::before, *::after { box-sizing: border-box; }
body { min-width: 320px; margin: 0; font-size: 14px; line-height: 1.6; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
.loginPage {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 30px 12px;
  color: #1f2937;
}

.card {
  box-sizing: border-box;
  width: 100%;
  max-width: 440px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgb(15 23 42 / 6%);
}

.brand {
  margin: 0 0 12px;
  color: #2563eb;
  font-size: 18px;
  font-weight: 800;
}

.title {
  margin: 0;
  color: #111827;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
}

.description {
  margin: 12px 0 22px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  color: #334155;
  font-size: 14px;
  font-weight: 600;
}

.field input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 12px 14px;
  color: #111827;
  background: #ffffff;
  border: 1px solid #94a3b8;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
}

.field input::placeholder {
  color: #64748b;
}

.field input:focus-visible {
  border-color: #2563eb;
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.field input:disabled {
  color: #64748b;
  background: #f1f5f9;
  cursor: not-allowed;
}

.passwordField {
  position: relative;
}

.passwordField input {
  padding-right: 78px;
}

.passwordToggle {
  position: absolute;
  top: 50%;
  right: 6px;
  min-width: 60px;
  min-height: 40px;
  padding: 6px 10px;
  transform: translateY(-50%);
  color: #475569;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.passwordToggle:hover:not(:disabled) {
  background: #f1f5f9;
}

.passwordToggle:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}

.passwordToggle:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.error {
  margin: 0;
  padding: 12px 14px;
  color: #854d0e;
  background: #fffbeb;
  border: 1px solid #f0c36e;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.submitButton {
  width: 100%;
  min-height: 44px;
  padding: 12px 12px;
  color: #ffffff;
  background: #2563eb;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.submitButton:hover:not(:disabled) {
  background: #1d4ed8;
}

.submitButton:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 3px;
}

.submitButton:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

@media (max-width: 480px) {
  .loginPage {
    padding: 18px 12px;
  }

  .card {
    padding: 22px 16px;
  }

  .title {
    font-size: 22px;
  }
}

.help { color: #475569; font-size: 14px; line-height: 1.6; }
.notice { padding: 12px 14px; border: 1px solid #93c5fd; border-radius: 8px; background: #eff6ff; color: #1e40af; font-size: 15px; line-height: 1.6; }
.secondaryButton { min-height: 44px; padding: 10px; border: 1px solid #94a3b8; border-radius: 8px; color: #334155; background: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.secondaryButton:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.secondaryButton:disabled { opacity: .65; cursor: not-allowed; }
