:root {
  --ink: #20272d;
  --muted: #5d6872;
  --line: #dfe4e8;
  --blue: #1264a3;
  --teal: #08796f;
  --red: #b42b34;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: #ffffff;
}
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; }
button, input { font: inherit; color: inherit; }
button, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .6; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, p { margin: 0; }
.login-header {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 80px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
}
.brand { color: var(--blue); font-size: 26px; font-weight: 700; white-space: nowrap; }
.brand b { color: var(--teal); }
.workspace-name { color: var(--muted); font-size: 12px; }
main {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 80px);
  min-height: calc(100dvh - 80px);
  padding: 32px 24px;
}
.login-content { width: 100%; max-width: 360px; min-width: 0; }
h1 { font-size: 20px; font-weight: 650; margin-bottom: 28px; }
form { display: grid; gap: 20px; }
.field { display: grid; gap: 7px; min-width: 0; }
label { color: var(--muted); font-size: 12px; }
input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 10px 11px;
  border: 1px solid #cbd3d9;
  border-radius: 5px;
  background: #ffffff;
  font-size: 16px;
}
input[aria-invalid="true"] { border-color: var(--red); }
input:disabled { color: var(--muted); background: #f5f7f8; }
.password-field { position: relative; min-width: 0; }
.password-field input { padding-right: 52px; }
.icon-button {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
}
.icon-button span { display: grid; place-items: center; }
.icon-button:hover:not(:disabled) { color: var(--blue); background: #eaf3f8; }
svg { width: 18px; height: 18px; flex: 0 0 auto; stroke-width: 1.7; }
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: 5px;
  background: var(--blue);
  color: #ffffff;
  font-size: 13px;
  font-weight: 550;
}
.submit-button:hover:not(:disabled) { background: #10548a; }
.login-feedback { min-height: 48px; color: var(--red); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .login-header { gap: 6px; align-items: flex-start; justify-content: center; flex-direction: column; padding: 12px 24px; }
}
