/* AccessEased split-screen sign-in */

.auth-login-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--mkt-font, "Outfit", ui-sans-serif, system-ui, sans-serif);
  color: #121417;
  background: #fff;
}

.auth-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
}

.auth-login-form-pane {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(29, 110, 245, 0.08), transparent 55%),
    #ffffff;
}

.auth-login-card {
  width: 100%;
  max-width: 26rem;
}

.auth-login-card h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #121417;
}

.auth-login-lead {
  margin: 0 0 1.75rem;
  color: #5b6570;
  font-size: 0.98rem;
  line-height: 1.5;
}

.auth-login-alert {
  margin: 0 0 1.15rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(220, 38, 38, 0.22);
  background: rgba(220, 38, 38, 0.08);
  color: #991b1b;
  font-size: 0.9rem;
  line-height: 1.45;
}

.auth-login-alert--success {
  border-color: rgba(5, 150, 105, 0.25);
  background: rgba(5, 150, 105, 0.1);
  color: #065f46;
}

.auth-login-alert--lockout {
  border-color: rgba(180, 83, 9, 0.28);
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.auth-login-alert-sub {
  font-size: 0.82rem;
  opacity: 0.9;
}

.auth-login-form .auth-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-field-error {
  font-size: 0.82rem;
  color: #991b1b;
}

.auth-otp-input {
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.35rem !important;
  letter-spacing: 0.35em;
  font-weight: 700;
}

.auth-resend-form {
  margin: 0;
}

.auth-link-button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.auth-login-form {
  display: grid;
  gap: 1.1rem;
}

.auth-field {
  display: grid;
  gap: 0.4rem;
}

.auth-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2a2f36;
}

.auth-field input[type="email"],
.auth-field input[type="password"],
.auth-field input[type="text"] {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(18, 20, 23, 0.14);
  background: #fff;
  color: #121417;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgba(18, 20, 23, 0.03);
}

.auth-password-wrap {
  position: relative;
}

.auth-password-wrap input {
  padding-right: 2.85rem;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  transform: translateY(-50%);
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: #5b6570;
  cursor: pointer;
  padding: 0;
}

.auth-password-toggle:hover {
  color: #1d6ef5;
  background: rgba(29, 110, 245, 0.08);
}

.auth-password-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
}

.auth-password-toggle .auth-eye--hide {
  display: none;
}

.auth-password-toggle.is-visible .auth-eye--show {
  display: none;
}

.auth-password-toggle.is-visible .auth-eye--hide {
  display: block;
}

.auth-field input::placeholder {
  color: rgba(91, 101, 112, 0.75);
}

.auth-field input:focus {
  outline: 2px solid rgba(29, 110, 245, 0.35);
  outline-offset: 1px;
  border-color: rgba(29, 110, 245, 0.45);
}

.auth-login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.auth-login-row--end {
  justify-content: flex-end;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #2a2f36;
  cursor: pointer;
  user-select: none;
}

.auth-check input {
  width: 1rem;
  height: 1rem;
  accent-color: #1d6ef5;
}

.auth-link {
  color: #1d6ef5;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.auth-link:hover {
  color: #1558c7;
  text-decoration: underline;
}

.auth-submit {
  appearance: none;
  border: 0;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  background: #1d6ef5;
  color: #fff;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(29, 110, 245, 0.28);
  transition: background 0.18s ease, transform 0.18s ease;
}

.auth-submit:hover {
  background: #1558c7;
  transform: translateY(-1px);
}

.auth-login-foot {
  margin: 1.35rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: #5b6570;
}

.auth-login-brand-pane {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 2.75rem;
  background:
    radial-gradient(800px 500px at 80% 10%, rgba(255, 255, 255, 0.18), transparent 50%),
    linear-gradient(160deg, #1d6ef5 0%, #1558c7 55%, #0f4bb0 100%);
  color: #fff;
  overflow: hidden;
}

.auth-login-brand-pane::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 80%);
  opacity: 0.55;
  pointer-events: none;
}

.auth-login-brand-top,
.auth-login-brand-copy,
.auth-login-brand-proof {
  position: relative;
  z-index: 1;
}

.auth-login-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-login-brand-mark img {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: #fff;
  object-fit: contain;
}

.auth-login-brand-copy {
  max-width: 28rem;
  margin: 3rem 0;
}

.auth-login-brand-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.auth-login-brand-copy p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.auth-login-brand-proof {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.auth-login-roles-badge {
  height: 2.5rem;
  width: auto;
  display: block;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(15, 20, 27, 0.18);
}

.auth-login-brand-proof span {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.auth-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

@media (max-width: 960px) {
  .auth-login {
    grid-template-columns: 1fr;
  }

  .auth-login-brand-pane {
    order: -1;
    min-height: auto;
    padding: 1.5rem 1.35rem 1.75rem;
  }

  .auth-login-brand-copy {
    margin: 1.35rem 0 1.1rem;
  }

  .auth-login-brand-copy h2 {
    font-size: 1.55rem;
  }

  .auth-login-brand-copy p {
    font-size: 0.95rem;
  }

  .auth-login-form-pane {
    padding: 2rem 1.25rem 2.5rem;
  }

  .auth-field-row {
    grid-template-columns: 1fr;
  }
}

.auth-invite-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
  margin: 0 0 0.75rem;
  padding: 1rem 1.05rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(18, 20, 23, 0.1);
  background: rgba(29, 110, 245, 0.04);
}

.auth-invite-meta > div {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.auth-invite-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5b6570;
}

.auth-invite-value {
  font-size: 0.95rem;
  font-weight: 650;
  color: #121417;
  word-break: break-word;
}

.auth-invite-expiry {
  margin: 0 0 1.35rem;
  font-size: 0.82rem;
  color: #5b6570;
}

a.auth-submit,
a.auth-submit--link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}

@media (max-width: 560px) {
  .auth-invite-meta {
    grid-template-columns: 1fr;
  }
}
