:root {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #111827;
  background: #edf1f5;
}

* { box-sizing: border-box; }

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

main {
  width: min(460px, calc(100% - 28px));
  margin: 0 auto;
  padding: 56px 0;
}

.card {
  padding: 30px;
  border: 1px solid #c8d2dc;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
}

.brand {
  margin: 0 0 24px;
  font-weight: 900;
  letter-spacing: .02em;
}

h1 {
  margin: 0;
  font-size: 2rem;
}

.intro {
  margin: 10px 0 24px;
  color: #64748b;
  line-height: 1.5;
}

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

label {
  display: grid;
  gap: 7px;
  font-size: .9rem;
  font-weight: 700;
}

input,
select,
button {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #bfcbd6;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font: inherit;
}

/* Login: the typed address must not inherit the label's bold weight. */
#login-form input[type="email"],
#access-help-email {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: normal;
}

@media (max-width: 640px) {
  #login-form input[type="email"],
  #access-help-email { font-size: 1rem; }
}

input[readonly] {
  background: #f8fafc;
  color: #475569;
}

input:focus,
select:focus {
  outline: 2px solid rgba(31, 115, 183, .22);
  border-color: #6d9fc8;
}

button {
  margin-top: 5px;
  cursor: pointer;
  font-weight: 800;
}

button:hover:not(:disabled) { background: #f4f7fa; }
button:disabled { opacity: .55; cursor: wait; }

.password-field { position: relative; }
.password-field input { padding-right: 48px; }
.password-field input::-ms-reveal,
.password-field input::-ms-clear { display: none; }

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateY(-50%);
}

.password-toggle:hover:not(:disabled) { background: #eef3f7; }

.password-eye {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
  margin: auto;
  border: 2px solid currentColor;
  border-radius: 50% / 60%;
}

.password-eye::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.password-toggle[aria-pressed="true"] .password-eye::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -3px;
  width: 22px;
  height: 2px;
  background: currentColor;
  transform: rotate(-35deg);
  transform-origin: center;
}

.message {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid #fecaca;
  border-radius: 6px;
  background: #fef2f2;
  color: #7f1d1d;
  line-height: 1.45;
}

.message.error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #7f1d1d;
}

.message.ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.links {
  margin-top: 18px;
  text-align: right;
  font-size: .82rem;
}

a { color: inherit; }

/* Password visibility: one minimal grey eye/closed-eyelid style on every access form. */
.password-toggle { color: #64748b; }
.password-toggle .password-icon {
  display: block;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.password-toggle .password-icon-open,
.password-toggle[aria-pressed="true"] .password-icon-closed { display: none; }
.password-toggle[aria-pressed="true"] .password-icon-open { display: block; }
