/* Login page: centered column, grouped fields */
main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.login {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  gap: 12px;
}

.login-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin: 0 auto 8px;
  box-shadow: 0 8px 20px -8px var(--shadow);
}

.login .title { font-size: 30px; font-weight: 700; letter-spacing: -.022em; }
.lead { color: var(--muted); margin-bottom: 8px; }
.login .msg { text-align: left; }
.login form { display: flex; flex-direction: column; gap: 16px; text-align: left; }

.group {
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--field);
  overflow: hidden;
}

.lrow {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 10px 16px 8px;
}
.lrow + .lrow { border-top: 1px solid var(--line); }
/* Group is 14px with a 1px border: inner rows follow the 13px inner corners so rings stay round. */
.lrow:first-child { border-top-left-radius: 13px; border-top-right-radius: 13px; }
.lrow:last-child { border-bottom-left-radius: 13px; border-bottom-right-radius: 13px; }
.lrow:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.lrow:has(input[aria-invalid="true"]) { box-shadow: inset 0 0 0 2px var(--danger); }
.lrow:has(input[aria-invalid="true"]) label { color: var(--danger); }

.lrow label { font-size: 12px; font-weight: 600; color: var(--muted); }
.lrow input {
  width: 100%;
  min-width: 0;
  min-height: 28px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 16px;
}
.lrow:has(.reveal:not([hidden])) input { padding-right: 44px; }

.reveal {
  position: absolute;
  right: 4px;
  bottom: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.reveal[hidden] { display: none; }
.reveal[aria-pressed="true"] { color: var(--accent); }

.login-submit { width: 100%; min-height: 50px; font-size: 17px; }
.forgot { font-size: 14px; color: var(--muted); }
