:root {
  --login-ink: #272727;
  --login-muted: #7a7c83;
  --login-line: #dde0e5;
  --login-accent: #ff6b00;
  --login-accent-deep: #f25500;
  --login-paper: #fffdfa;
  --login-ease: cubic-bezier(.22, 1, .36, 1);
}

* {
  box-sizing: border-box;
}

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

body.login-page {
  margin: 0;
  overflow-x: hidden;
  color: var(--login-ink);
  background: var(--login-paper);
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.login-page button,
.login-page input,
.login-page a {
  font: inherit;
}

.login-page a {
  color: inherit;
  text-decoration: none;
}

.login-page a:focus-visible,
.login-page button:focus-visible,
.login-page input:focus-visible {
  outline: 3px solid rgba(255, 107, 0, .24);
  outline-offset: 3px;
}

.login-skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff !important;
  background: var(--login-accent);
  transform: translateY(-150%);
  transition: transform .2s ease;
}

.login-skip-link:focus {
  transform: translateY(0);
}

.login-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 56%) minmax(420px, 44%);
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.login-hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #f4ede7;
  clip-path: polygon(0 0, 100% 0, 91% 100%, 0 100%);
}

.login-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% center;
  transform: scale(1.035);
  animation: login-image-in 1.2s var(--login-ease) both;
}

.login-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .91) 24%, rgba(255, 255, 255, .3) 48%, rgba(255, 255, 255, 0) 68%);
  pointer-events: none;
}

.login-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100%;
  width: min(480px, 52%);
  padding: clamp(72px, 10vh, 116px) 0 72px clamp(42px, 5.1vw, 104px);
  flex-direction: column;
  justify-content: center;
}

.login-hero__eyebrow {
  margin: 0 0 12px;
  color: var(--login-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.login-hero h1 {
  max-width: 440px;
  margin: 0;
  color: var(--login-ink);
  font-size: clamp(40px, 3.45vw, 66px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.login-hero h1 span {
  display: block;
  color: var(--login-accent);
}

.login-hero__rule {
  width: 64px;
  height: 3px;
  margin: 26px 0 22px;
  border: 0;
  border-radius: 99px;
  background: var(--login-accent);
  transform-origin: left;
}

.login-hero__copy {
  max-width: 330px;
  margin: 0;
  color: #4f5054;
  font-size: clamp(16px, 1.1vw, 20px);
  line-height: 1.55;
}

.login-benefits {
  display: grid;
  gap: 20px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.login-benefit {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.login-benefit__icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(255, 107, 0, .11);
  border-radius: 14px;
  color: var(--login-accent);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 10px 30px rgba(63, 44, 27, .08);
  font-size: 24px;
}

.login-benefit > span:last-child strong,
.login-benefit > span:last-child span {
  display: block;
}

.login-benefit > span:last-child strong {
  margin-bottom: 3px;
  font-size: 15px;
  font-weight: 700;
}

.login-benefit > span:last-child span {
  color: #5f6064;
  font-size: 13px;
  line-height: 1.4;
}

.login-panel {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: 48px clamp(34px, 4vw, 76px);
  background:
    radial-gradient(circle at 92% 95%, rgba(255, 107, 0, .07) 0 2px, transparent 2.6px) 0 0 / 17px 17px,
    linear-gradient(150deg, #fff 0%, #fffaf6 100%);
}

.login-panel::before,
.login-panel::after {
  content: "";
  position: absolute;
  right: -10%;
  z-index: 0;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 107, 0, .08);
  box-shadow: 0 0 0 16px rgba(255, 107, 0, .025), 0 0 0 34px rgba(255, 107, 0, .018);
  pointer-events: none;
}

.login-panel::before {
  top: -25%;
}

.login-panel::after {
  bottom: -34%;
  left: 3%;
}

.login-panel__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
}

.login-card {
  padding: clamp(32px, 3vw, 46px) clamp(30px, 3vw, 44px) 28px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 24px;
  background: rgba(255, 255, 255, .93);
  box-shadow: 0 24px 64px rgba(70, 52, 35, .11);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.login-brand {
  display: block;
  width: min(100%, 220px);
  height: auto;
  margin: 0 auto 12px;
}

.login-card__heading {
  margin: 0;
  text-align: center;
  font-size: clamp(27px, 1.7vw, 32px);
  font-weight: 700;
  letter-spacing: -.025em;
}

.login-card__copy {
  max-width: 360px;
  margin: 6px auto 22px;
  color: var(--login-muted);
  text-align: center;
  font-size: 15px;
  line-height: 1.4;
}

.login-field {
  position: relative;
  margin-bottom: 14px;
}

.login-field__icon {
  position: absolute;
  top: 50%;
  left: 18px;
  z-index: 1;
  color: var(--login-accent);
  font-size: 19px;
  transform: translateY(-50%);
  pointer-events: none;
}

.login-field .login-input {
  display: block;
  width: 100%;
  height: 54px;
  padding: 0 48px;
  border: 1px solid var(--login-line);
  border-radius: 12px;
  color: var(--login-ink);
  background: rgba(255, 255, 255, .82);
  box-shadow: inset 0 1px 2px rgba(33, 33, 33, .02);
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.login-field .login-input::placeholder {
  color: #9b9da4;
}

.login-field .login-input:hover {
  border-color: #c8cbd0;
}

.login-field .login-input:focus {
  border-color: var(--login-accent);
  outline: 0;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 107, 0, .1);
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: #5e6066;
  background: transparent;
  font-size: 19px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color .2s ease, background-color .2s ease;
}

.password-toggle:hover {
  color: var(--login-accent);
  background: rgba(255, 107, 0, .08);
}

.login-options {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 18px;
  font-size: 13px;
}

.login-checkbox {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.login-checkbox input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.login-checkbox__mark {
  position: relative;
  width: 18px;
  height: 18px;
  border: 1.5px solid #cfd2d7;
  border-radius: 5px;
  background: #fff;
  transition: border-color .2s ease, background-color .2s ease;
}

.login-checkbox input:checked + .login-checkbox__mark {
  border-color: var(--login-accent);
  background: var(--login-accent);
}

.login-checkbox input:checked + .login-checkbox__mark::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 6px;
  width: 5px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.login-checkbox input:focus-visible + .login-checkbox__mark {
  outline: 3px solid rgba(255, 107, 0, .2);
  outline-offset: 3px;
}

.login-forgot {
  color: var(--login-accent) !important;
  font-weight: 500;
}

.login-forgot:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-submit {
  position: relative;
  display: flex;
  width: 100%;
  height: 54px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(100deg, var(--login-accent-deep), #ff7900);
  box-shadow: 0 14px 28px rgba(255, 107, 0, .22);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform .25s var(--login-ease), box-shadow .25s ease, filter .25s ease;
}

.login-submit > span:first-child {
  position: absolute;
  top: 50%;
  left: 50%;
  line-height: 1;
  transform: translate(-50%, -50%);
}

.login-submit:hover {
  box-shadow: 0 18px 34px rgba(255, 107, 0, .29);
  filter: saturate(1.08);
  transform: translateY(-2px);
}

.login-submit:active {
  transform: translateY(0) scale(.995);
}

.login-submit__arrow {
  position: absolute;
  top: 50%;
  right: 22px;
  width: 22px;
  height: 2px;
  border-radius: 9px;
  background: currentColor;
  transform: translateY(-50%);
  transition: transform .25s var(--login-ease);
}

.login-submit__arrow::before,
.login-submit__arrow::after {
  content: "";
  position: absolute;
  right: 0;
  width: 10px;
  height: 2px;
  border-radius: 9px;
  background: currentColor;
  transform-origin: right;
}

.login-submit__arrow::before {
  transform: rotate(45deg);
}

.login-submit__arrow::after {
  transform: rotate(-45deg);
}

.login-submit:hover .login-submit__arrow {
  transform: translate(4px, -50%);
}

.login-security {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 20px;
  color: #85878d;
  font-size: 12px;
}

.login-security::before,
.login-security::after {
  content: "";
  min-width: 24px;
  height: 1px;
  flex: 1;
  background: #e1e3e7;
}

.login-security i {
  margin-right: 4px;
  color: var(--login-accent);
}

.login-support {
  display: flex;
  gap: 15px;
  width: max-content;
  max-width: 100%;
  margin: 22px auto 0;
  align-items: center;
}

.login-support__icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 107, 0, .12);
  border-radius: 50%;
  color: var(--login-accent);
  background: #fff7f1;
}

.login-support__icon svg {
  width: 23px;
  height: 23px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-support > div strong,
.login-support > div span {
  display: block;
}

.login-support > div strong {
  margin-bottom: 3px;
  font-size: 14px;
}

.login-support a {
  color: var(--login-accent);
}

.login-support > div span {
  color: var(--login-muted);
  font-size: 13px;
}

.login-hero__content > *,
.login-panel__inner {
  animation: login-rise .72s var(--login-ease) both;
}

.login-hero__eyebrow { animation-delay: .08s; }
.login-hero h1 { animation-delay: .14s; }
.login-hero__rule { animation: login-rule-in .7s .22s var(--login-ease) both; }
.login-hero__copy { animation-delay: .27s; }
.login-benefits { animation-delay: .34s; }
.login-panel__inner { animation-delay: .16s; }

@keyframes login-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes login-rule-in {
  from { opacity: 0; transform: scaleX(0); }
  to { opacity: 1; transform: scaleX(1); }
}

@keyframes login-image-in {
  from { opacity: .55; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1.035); }
}

@media (max-width: 1240px) {
  .login-shell {
    grid-template-columns: minmax(0, 53%) minmax(410px, 47%);
  }

  .login-hero__content {
    width: min(460px, 58%);
    padding-left: 48px;
  }

  .login-hero h1 {
    font-size: clamp(38px, 4.25vw, 54px);
  }

  .login-panel {
    padding-inline: 38px;
  }
}

@media (max-width: 900px) {
  body.login-page {
    background: #fffaf6;
  }

  .login-shell {
    position: relative;
    display: block;
    min-height: 1160px;
    padding-bottom: 640px;
    overflow: visible;
    background:
      radial-gradient(circle at 92% 88%, rgba(255, 107, 0, .07) 0 1.8px, transparent 2.4px) 0 0 / 15px 15px,
      linear-gradient(180deg, #fff 0%, #fffaf6 100%);
  }

  .login-hero {
    min-height: 520px;
    clip-path: none;
  }

  .login-hero__image {
    object-position: 40% center;
  }

  .login-hero::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .88) 34%, rgba(255, 255, 255, .22) 67%, rgba(255, 255, 255, .04) 100%);
  }

  .login-hero__content {
    width: min(430px, 68%);
    min-height: 520px;
    padding: 48px 20px 66px 36px;
    justify-content: flex-start;
  }

  .login-hero h1 {
    max-width: 360px;
    font-size: clamp(34px, 6vw, 48px);
  }

  .login-hero__rule {
    margin: 19px 0 17px;
  }

  .login-hero__copy {
    font-size: 15px;
  }

  .login-benefits {
    gap: 14px;
    margin-top: 24px;
  }

  .login-benefit {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }

  .login-benefit__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 21px;
  }

  .login-panel {
    position: absolute;
    top: 448px;
    right: 0;
    left: 0;
    z-index: 4;
    min-height: auto;
    margin: 0;
    padding: 0 24px 32px;
    place-items: start center;
    background: transparent;
  }

  .login-panel::before,
  .login-panel::after {
    display: none;
  }

  .login-panel__inner {
    width: min(100%, 440px);
  }

  .login-card {
    padding: 30px 24px 24px;
    border-radius: 32px;
    box-shadow: 0 22px 58px rgba(70, 52, 35, .14);
  }
}

@media (max-width: 540px) {
  .login-shell {
    min-height: 1110px;
    padding-bottom: 610px;
  }

  .login-hero {
    min-height: 500px;
  }

  .login-hero__image {
    object-position: 42% center;
  }

  .login-hero::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, .99) 0%, rgba(255, 255, 255, .92) 41%, rgba(255, 255, 255, .19) 76%, rgba(255, 255, 255, .04) 100%);
  }

  .login-hero__content {
    width: 72%;
    min-height: 500px;
    padding: 34px 10px 58px 24px;
  }

  .login-hero__eyebrow {
    display: none;
  }

  .login-hero h1 {
    max-width: 260px;
    font-size: clamp(32px, 9vw, 40px);
  }

  .login-hero__copy {
    display: none;
  }

  .login-benefits {
    gap: 12px;
    margin-top: 22px;
  }

  .login-benefit {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
  }

  .login-benefit__icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    font-size: 20px;
  }

  .login-benefit strong {
    font-size: 13px;
  }

  .login-benefit span {
    max-width: 155px;
    font-size: 11px;
  }

  .login-panel {
    top: 448px;
    padding-inline: 22px;
  }

  .login-card {
    padding: 28px 20px 22px;
    border-radius: 30px;
    box-shadow: 0 20px 52px rgba(70, 52, 35, .14);
  }

  .login-brand {
    width: 185px;
    margin-bottom: 8px;
  }

  .login-card__heading {
    font-size: 26px;
  }

  .login-card__copy {
    margin-top: 5px;
    margin-bottom: 18px;
    font-size: 13px;
  }

  .login-field .login-input {
    height: 52px;
    padding-left: 46px;
    font-size: 14px;
  }

  .login-field__icon {
    left: 18px;
  }

  .login-options {
    gap: 8px;
    margin: 12px 0 16px;
    font-size: 12px;
  }

  .login-submit {
    height: 52px;
  }

  .login-security {
    gap: 10px;
    font-size: 12px;
  }

  .login-support {
    margin-top: 20px;
  }

  .login-support__icon {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 370px) {
  .login-hero__content {
    padding-left: 18px;
  }

  .login-hero h1 {
    font-size: 31px;
  }

  .login-card {
    padding-inline: 18px;
  }

  .login-options {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .login-checkbox {
    gap: 7px;
  }

  .login-forgot {
    white-space: nowrap;
  }
}

@media (max-height: 800px) and (min-width: 901px) {
  .login-card {
    padding-top: 34px;
    padding-bottom: 26px;
  }

  .login-brand {
    width: 220px;
    margin-bottom: 10px;
  }

  .login-card__copy {
    margin-bottom: 22px;
  }

  .login-field .login-input,
  .login-submit {
    height: 54px;
  }

  .login-support {
    margin-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
