:root {
  color-scheme: dark;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0b0b0b;
  color: #f2f1ef;
}

* { box-sizing: border-box; }
.nucleo-auth {
  display: grid;
  place-items: center;
  margin: 0;
  min-height: 100svh;
  padding: 24px;
}
.auth-shell {
  width: min(100%, 410px);
  padding: clamp(24px, 5vw, 38px);
  border-radius: 20px;
  background: #151515;
}
.auth-header {
  margin: 0 0 30px;
}
.auth-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #232323;
  margin-bottom: 21px;
}
.auth-mark img {
  display: block;
  filter: grayscale(1) brightness(2);
  border-radius: 5px;
}
.auth-header h1 {
  margin: 0;
  font-size: clamp(26px, 6vw, 32px);
  font-weight: 560;
  letter-spacing: -.045em;
  line-height: 1.1;
}
.auth-form {
  display: grid;
  min-width: 0;
  gap: 8px;
}
.auth-form label {
  color: #d1ceca;
  font-size: 13px;
}
.auth-form > input:not([type="hidden"]), .auth-password, .auth-form fieldset input {
  border: 1px solid transparent;
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border-radius: 9px;
  font: inherit;
  font-size: 16px;
  color: #f2f1ef;
  background: #222;
  transition: background .18s ease, border-color .18s ease;
}
.auth-form > input:not([type="hidden"]):hover, .auth-password:hover, .auth-form fieldset input:hover {
  background: #272727;
}
.auth-form > input:not([type="hidden"]):focus, .auth-password:focus-within, .auth-form fieldset input:focus {
  outline: none;
  border-color: #8d8a87;
  background: #272727;
}
.auth-form > label:not(:first-of-type) {
  margin-top: 9px;
}
.auth-password {
  display: flex;
  align-items: center;
  padding: 0 6px 0 12px;
}
.auth-password input {
  min-width: 0;
  min-height: 44px;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  font: inherit;
  background: transparent;
  outline: none;
}
.auth-password button {
  flex: none;
  min-width: 66px;
  min-height: 34px;
  padding: 0 7px;
  border: 0;
  border-radius: 6px;
  color: #bbb7b3;
  background: transparent;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.auth-password button:hover { background: #343434; color: #fff; }
.auth-submit {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  min-height: 46px;
  margin-top: 15px;
  padding: 0 13px;
  border: 0;
  border-radius: 9px;
  background: #e9e7e4;
  color: #151515;
  text-decoration: none;
  font: inherit;
  font-size: 14px;
  font-weight: 620;
  cursor: pointer;
  transition: background .18s ease, transform .2s cubic-bezier(.2,.75,.2,1);
}
.auth-submit:hover { background: #fff; }
.auth-submit:active { transform: scale(.99); }
.auth-submit span { font-size: 18px; transition: transform .22s cubic-bezier(.2,.75,.2,1); }
.auth-submit:hover span { transform: translateX(2px); }
.auth-form button:focus-visible, .auth-submit:focus-visible, .auth-back:focus-visible {
  outline: 2px solid #bdb8b3;
  outline-offset: 3px;
}
.auth-alert {
  margin: 0 0 20px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #2c1f1e;
  color: #ffbab5;
  line-height: 1.45;
  font-size: 13px;
}
.auth-help {
  margin: 0 0 16px;
  color: #b7b3af;
  font-size: 14px;
  line-height: 1.5;
}
.auth-form small {
  font-size: 12px;
  color: #b7b3af;
}
.auth-form fieldset {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 12px 0 2px;
}
.auth-form legend { padding: 0 0 11px; font-size: 14px; font-weight: 600; }
.auth-form fieldset label:not(:first-of-type) { margin-top: 3px; }
.auth-back { display: inline-block; color: #c8c5c1; margin-top: 20px; font-size: 13px; }
@media (max-width: 360px) {
  .nucleo-auth { padding: 14px; }
}

/* The same compact access form serves the team and clients. */
.auth-login {
  background:radial-gradient(ellipse 500px 400px at 50% 48%,#191919 0%,#101010 63%,#0d0d0d 100%);
}
.auth-login .auth-shell {
  width:min(100%,420px);
  margin:auto;
  padding:clamp(23px,6vw,34px);
  border:1px solid #282828;
  border-radius:18px;
  background:#151515;
  box-shadow:0 19px 72px #0005;
}
.auth-login .auth-access {
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 24px;
  font-size:14px;
  font-weight:580;
  color:#e2e2e2;
}
.auth-access-icon {
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:9px;
  background:#272727;
  color:#c5c5c5;
}
.auth-login .auth-form { gap:17px; }
.auth-field-group {
  display:grid;
  border-radius:11px;
  overflow:hidden;
  border:1px solid #303030;
  background:#1e1e1e;
}
.auth-login .auth-field {
  position:relative;
  display:grid;
  gap:3px;
  align-content:center;
  min-width:0;
  min-height:65px;
  padding:10px 12px 9px;
  transition:background .22s ease;
}
.auth-login .auth-field + .auth-field { border-top:1px solid #323232; }
.auth-login .auth-field:where(:hover,:focus-within) { background:#272727; }
.auth-login .auth-field:focus-within::before {
  content:'';
  position:absolute;
  inset:0 auto 0 0;
  width:2px;
  background:#bebebe;
}
.auth-login .auth-field > :first-child {
  margin:0;
  color:#c4c4c4;
  font-size:12px;
  font-weight:530;
}
.auth-login .auth-field > input,.auth-login .auth-password {
  width:100%;
  min-height:26px;
  padding:0;
  border:0;
  border-radius:0;
  color:#f1f1f1;
  background:transparent;
  font:inherit;
  font-size:16px;
  outline:none;
}
.auth-login .auth-field input::placeholder { color:#858585; }
.auth-login .auth-password input { min-height:26px; }
.auth-login .auth-password button {
  position:absolute;
  inset:50% 7px auto auto;
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  margin:0;
  transform:translateY(-50%);
  border-radius:7px;
}
.auth-login .auth-password:has(button:not([hidden])) { padding-inline-end:33px; }
.auth-login .auth-password button[hidden] { display:none; }
.auth-login :is(.auth-access-icon,.auth-password button,.auth-submit) svg {
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.auth-login .auth-eye-closed,.auth-login button[aria-pressed="true"] .auth-eye-open { display:none; }
.auth-login button[aria-pressed="true"] .auth-eye-closed { display:block; }
.auth-login .auth-submit {
  position:relative;
  justify-content:center;
  min-height:46px;
  padding-inline:38px;
  border-radius:9px;
  font-size:14px;
  background:#e8e8e8;
  transition:background .2s ease,transform .2s ease;
}
.auth-login .auth-submit:hover { background:#fff; }
.auth-login .auth-submit:active { transform:translateY(1px); }
.auth-login .auth-submit svg {
  position:absolute;
  right:14px;
  transition:transform .24s cubic-bezier(.2,.75,.2,1);
}
.auth-login .auth-submit:hover svg { transform:translateX(3px); }
.auth-login .auth-alert { margin:0 0 15px; border-radius:7px; }
.auth-login .auth-submit:disabled { cursor:wait; opacity:.72; }
.auth-login .auth-submit:disabled svg { transform:none; }
.auth-login .auth-submit > span { font-size:inherit; transform:none; }
.auth-login .auth-recovery { display:table; margin:16px auto 0; color:#bdbdbd; font-size:12px; text-decoration:none; }
.auth-login .auth-recovery:is(:hover,:focus-visible) { color:#fff; text-decoration:underline; }
.auth-login .auth-recovery-note,.auth-login .auth-status { margin:0; color:#bdbdbd; font-size:13px; line-height:1.55; }
.auth-login .auth-status { padding:8px 0 15px; }
.auth-login .auth-reset-visibility { display:flex; gap:8px; align-items:center; cursor:pointer; }
.auth-login .auth-reset-visibility input { margin:0; accent-color:#dfdfdf; }
