:root {
  color-scheme: light;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #141735;
  background: #fff;
  font-synthesis: none;
  --ink: #141735;
  --muted: #5f6474;
  --blue: #3c3cff;
  --border: #cbd0da;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  min-width: 280px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
}

button, input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 3px solid #4949f0;
  outline-offset: 3px;
}

.page {
  display: grid;
  min-height: inherit;
  grid-template-columns: minmax(0, 58rem);
  place-content: center;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 2rem);
}

.login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 24.5rem);
  align-items: center;
  column-gap: clamp(2.5rem, 9vw, 8rem);
}

.brand-logo {
  display: block;
  justify-self: center;
  width: clamp(10rem, 24vw, 17rem);
  max-width: 100%;
  height: auto;
}

.account {
  min-width: 0;
}

.heading {
  margin-bottom: 1.8rem;
}

.heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 2.55rem);
  font-weight: 680;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

form {
  display: grid;
  gap: 1.125rem;
}

.field {
  display: grid;
  gap: 0.5rem;
}

label {
  font-size: 0.9rem;
  font-weight: 650;
}

input:not([type="checkbox"]):not([type="hidden"]) {
  display: block;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 0.9rem;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: #fff;
}

input:not([type="checkbox"]):not([type="hidden"])::placeholder {
  color: #686e7e;
  opacity: 1;
}

.password {
  position: relative;
}

.password input {
  padding-right: 3.3rem;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 0.26rem;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  padding: 0;
  transform: translateY(-50%);
  color: var(--muted);
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
}

.toggle-password svg {
  width: 1.25rem;
  height: 1.25rem;
}

.eye-slash {
  visibility: hidden;
}

.toggle-password[aria-pressed="true"] .eye-slash {
  visibility: visible;
  paint-order: stroke;
}

.button {
  display: flex;
  width: 100%;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.35;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.primary {
  margin-top: 0.375rem;
  color: #fff;
  background: var(--blue);
}

.primary:hover {
  background: #2929d9;
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.05rem 0;
  color: var(--muted);
  line-height: 1.15;
  font-size: 0.875rem;
}

.divider::before, .divider::after {
  flex: 1;
  height: 1px;
  background: #e4e6ed;
  content: "";
}

.identity-provider {
  color: var(--ink);
  border-color: var(--border);
  background: #fff;
}

.identity-provider:hover, .toggle-password:hover {
  background: #f5f6fa;
}

.microsoft-icon {
  display: grid;
  flex: 0 0 1.05rem;
  grid-template: repeat(2, 1fr) / repeat(2, 1fr);
  width: 1.05rem;
  height: 1.05rem;
  gap: 1px;
}

.microsoft-icon i:nth-child(1) { background: #f25022; }
.microsoft-icon i:nth-child(2) { background: #7fba00; }
.microsoft-icon i:nth-child(3) { background: #00a4ef; }
.microsoft-icon i:nth-child(4) { background: #ffb900; }

@media (max-width: 640px) {
  .page {
    grid-template-columns: minmax(0, 24.5rem);
  }

  .login {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2.25rem;
  }

  .brand-logo {
    justify-self: start;
    width: 8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}
.identity-provider {
  text-decoration: none;
}

#kc-social-providers {
  display: grid;
  gap: 0.75rem;
}

.login-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.field-error, .alert-error {
  color: #a60c26;
}

.field-error, .login-message, .login-options, #kc-info, .language-switch {
  font-size: 0.9rem;
}

.login-message {
  margin-bottom: 1rem;
}

.language-switch ul {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 0;
  list-style: none;
}

.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  text-decoration: underline;
}

#kc-info, #kc-select-try-another-way-form {
  margin-top: 1rem;
}

