:root {
  --red: #970015;
  --red-dark: #760011;
  --red-light: #f8e9ec;
  --grey: #63686c;
  --ink: #202427;
  --muted: #72787c;
  --line: #e1e4e6;
  --background: #f7f8f9;
  --white: #ffffff;
  --dark: #252a2e;
  --dark-2: #30363a;
  --success: #18794e;
  --shadow: 0 18px 50px rgba(25, 29, 32, .10);
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--background);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(151, 0, 21, .25);
  outline-offset: 3px;
}

/* PAGE */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(430px, 43%) 1fr;
}

/* BRAND */
.brand-panel {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 85% 18%, rgba(151, 0, 21, .30), transparent 30%),
    linear-gradient(145deg, #202528 0%, #292f33 55%, #1d2225 100%);
}

.brand-panel::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  right: -270px;
  bottom: -220px;
}

.brand-panel::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border: 45px solid rgba(151, 0, 21, .14);
  border-radius: 50%;
  left: -170px;
  top: 44%;
}

.brand-panel-inner {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  max-width: 680px;
  margin: 0 auto;
  padding: 42px 56px 30px;
  display: flex;
  flex-direction: column;
}

.logo-wrap {
  display: inline-flex;
  width: fit-content;
  padding: 5px 0;
}

.logo {
  width: 155px;
  /* height: auto;
  max-height: 50px; */
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.brand-content {
  margin: auto 0;
  /* padding: 50px 0; */
  max-width: 510px;
}

.eyebrow,
.heading-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
}

.eyebrow {
  color: #f0a6b1;
}

.brand-content h1 {
  margin: 13px 0 17px;
  font-size: clamp(34px, 4vw, 51px);
  line-height: 1.06;
  letter-spacing: -.045em;
}

.brand-content h1 span {
  color: #f0a0ac;
}

.brand-content>p {
  max-width: 475px;
  margin: 0;
  color: #c1c7ca;
  font-size: 13px;
  line-height: 1.75;
}

.feature-categories {
  display: grid;
  gap: 20px;
  margin-top: 35px;
}

.feature-category h4 {
  color: #fff;
  font-size: 14px;
  margin: 0 0 10px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  padding-bottom: 5px;
}

.feature-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-category li {
  font-size: 12px;
}

.feature-category a {
  color: #c1c7ca;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-block;
  padding: 2px 0;
}

.feature-category a:hover {
  color: #fff;
  text-decoration: underline;
}

.brand-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #81898d;
  font-size: 9px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 19px;
}

/* LOGIN */
.login-panel {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background);
}

.login-container {
  width: min(460px, calc(100% - 60px));
  padding: 45px 0;
}

.mobile-logo {
  display: none;
}

.login-heading {
  margin-bottom: 27px;
}

.heading-label {
  color: var(--red);
}

.login-heading h2 {
  margin: 8px 0 8px;
  font-size: 29px;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.login-heading p {
  max-width: 400px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

/* FORM */
.login-form {
  display: grid;
  gap: 19px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label {
  color: #3b4043;
  font-size: 11px;
  font-weight: 700;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.label-row a {
  color: var(--red);
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
}

.label-row a:hover {
  text-decoration: underline;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: #8c9295;
  font-size: 12px;
  pointer-events: none;
  z-index: 2;
}

.input-wrap input {
  width: 100%;
  height: 50px;
  padding: 0 44px 0 40px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d9dddf;
  border-radius: 9px;
  outline: none;
  font-size: 12px;
  transition: border .18s, box-shadow .18s;
}

.input-wrap input::placeholder {
  color: #a2a7aa;
}

.input-wrap input:hover {
  border-color: #bfc4c7;
}

.input-wrap input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(151, 0, 21, .09);
}

.password-toggle {
  position: absolute;
  right: 7px;
  width: 37px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #747a7d;
  background: transparent;
  border-radius: 7px;
  cursor: pointer;
}

.password-toggle:hover {
  color: var(--red);
  background: var(--red-light);
}

.form-options {
  margin-top: -3px;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
}

.remember input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkmark {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border: 1px solid #ccd1d4;
  border-radius: 4px;
  background: #fff;
}

.remember input:checked+.checkmark {
  background: var(--red);
  border-color: var(--red);
}

.remember input:checked+.checkmark::after {
  content: "\f00c";
  color: #fff;
  font: normal normal normal 9px/1 FontAwesome;
}

/* BUTTON */
.login-button {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #fff;
  background: var(--red);
  border-radius: 9px;
  box-shadow: 0 8px 18px rgba(151, 0, 21, .16);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: .18s;
}

.login-button:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 11px 24px rgba(151, 0, 21, .22);
}

.login-button:active {
  transform: translateY(0);
}

.login-button.loading {
  pointer-events: none;
  opacity: .78;
}

.login-button.loading span::after {
  content: "...";
}

/* SEPARATOR */
.separator {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 25px 0 15px;
  color: #a0a5a8;
  font-size: 9px;
}

.separator::before,
.separator::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

/* PASSKEY */
.passkey-button {
  width: 100%;
  min-height: 57px;
  padding: 8px 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  transition: .18s;
}

.passkey-button:hover {
  border-color: #cfaeb4;
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.passkey-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  color: var(--red);
  background: var(--red-light);
  border-radius: 8px;
}

.passkey-button>span:nth-child(2) {
  flex: 1;
}

.passkey-button strong,
.passkey-button small {
  display: block;
}

.passkey-button strong {
  font-size: 11px;
}

.passkey-button small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.passkey-button>i {
  color: #a3a8ab;
}

/* HELP */
.help-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 13px;
  background: #f1f2f3;
  border: 1px solid #e5e7e8;
  border-radius: 9px;
}

.help-icon {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  display: grid;
  place-items: center;
  color: var(--grey);
  background: #fff;
  border-radius: 7px;
}

.help-box div {
  flex: 1;
}

.help-box strong,
.help-box div>span {
  display: block;
}

.help-box strong {
  font-size: 10px;
}

.help-box div>span {
  margin-top: 1px;
  color: var(--muted);
  font-size: 9px;
}

.help-box>a {
  color: var(--red);
  font-size: 10px;
}

.login-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-top: 23px;
  color: #9a9fa2;
  font-size: 9px;
}

.login-links a:hover {
  color: var(--red);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .login-page {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    display: none;
  }

  .login-panel {
    min-height: 100vh;
    padding: 30px 0;
  }

  .login-container {
    width: min(460px, calc(100% - 40px));
  }

  .mobile-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 38px;
  }

  .mobile-logo img {
    width: 145px;
    height: auto;
    max-height: 50px;
    object-fit: contain;
  }
}

@media (max-width: 500px) {
  .login-panel {
    padding: 22px 0;
    align-items: flex-start;
  }

  .login-container {
    width: calc(100% - 32px);
    padding: 15px 0 30px;
  }

  .mobile-logo {
    margin-bottom: 30px;
  }

  .login-heading h2 {
    font-size: 25px;
  }

  .input-wrap input,
  .login-button {
    height: 48px;
  }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}