:root {
  --auth-red: #ed0017;
  --auth-text: #202124;
  --auth-muted: #777b84;
  --auth-border: #e5e6e9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--auth-text);
  font-family: "Roboto", Arial, sans-serif;
}

button,
input { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; text-decoration: none; }

.auth-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 12% 16%, rgb(237 0 23 / 5%), transparent 22%),
    linear-gradient(135deg, #fbfbfc, #f3f4f6);
}

.auth-shell {
  display: grid;
  width: min(1180px, 100%);
  min-height: 700px;
  grid-template-columns: 1.06fr .94fr;
  border: 1px solid rgb(231 232 235 / 90%);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 25px 70px rgb(31 35 45 / 13%);
}

.auth-visual {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 23px 0 0 23px;
  background-color: #fff8f5;
  background-image: url("../../../img/auth/auth-fashion.png");
  background-position: center;
  background-size: cover;
  isolation: isolate;
  transition: background-image .35s ease;
}

.auth-visual::after {
  position: absolute;
  z-index: -1;
  background: linear-gradient(90deg, rgb(255 252 249 / 38%), transparent 70%);
  content: "";
  inset: 0;
}

.auth-logo {
  position: absolute;
  z-index: 3;
  top: 32px;
  left: 42px;
  display: block;
  width: 140px;
}

.auth-logo img { display: block; width: 100%; }

.auth-welcome-copy {
  position: relative;
  z-index: 2;
  width: 330px;
  padding: 118px 0 0 46px;
}

.auth-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--auth-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.auth-welcome-copy h1 {
  margin: 0;
  font-size: clamp(36px, 4vw, 53px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.auth-welcome-copy h1 strong { color: var(--auth-red); }

.auth-welcome-copy > p {
  margin: 16px 0 22px;
  color: #62656c;
  font-size: 14px;
  line-height: 1.65;
}

.auth-benefits {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-benefits li {
  display: flex;
  width: max-content;
  min-width: 168px;
  min-height: 43px;
  align-items: center;
  gap: 10px;
  padding: 7px 15px 7px 9px;
  border: 1px solid rgb(255 255 255 / 85%);
  border-radius: 24px;
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 7px 20px rgb(62 37 30 / 7%);
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(7px);
}

.auth-benefits img {
  width: 23px;
  filter: invert(14%) sepia(99%) saturate(6348%) hue-rotate(350deg) brightness(101%);
}

.auth-scene-dots {
  position: absolute;
  z-index: 4;
  bottom: 24px;
  left: 46px;
  display: flex;
  gap: 7px;
}

.auth-scene-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: rgb(32 33 36 / 24%);
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}

.auth-scene-dots button.is-active { width: 24px; background: var(--auth-red); }

.auth-card {
  position: relative;
  z-index: 5;
  align-self: center;
  min-height: calc(100% + 30px);
  margin: -15px -1px -15px -48px;
  padding: 30px 48px 24px;
  border: 1px solid #ececef;
  border-radius: 22px;
  background: rgb(255 255 255 / 98%);
  box-shadow: 0 22px 60px rgb(36 39 49 / 15%);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: -4px 0 20px;
  border-bottom: 1px solid #e7e8eb;
}

.auth-tabs button {
  position: relative;
  min-height: 50px;
  border: 0;
  background: transparent;
  color: #777b84;
  font-weight: 600;
  cursor: pointer;
}

.auth-tabs button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--auth-red);
  content: "";
  opacity: 0;
  transform: scaleX(.35);
  transition: opacity .2s ease, transform .25s ease;
}

.auth-tabs button.is-active { color: var(--auth-red); }
.auth-tabs button.is-active::after { opacity: 1; transform: scaleX(1); }

.auth-panel[hidden] { display: none; }
.auth-panel { animation: auth-panel-in .25s ease both; }

.auth-panel-heading { margin-bottom: 14px; }
.auth-panel-heading h2 { margin: 0 0 4px; font-size: 20px; }
.auth-panel-heading p { margin: 0; color: var(--auth-muted); font-size: 11px; line-height: 1.45; }

.auth-form { display: grid; gap: 11px; }

.auth-field {
  position: relative;
  display: grid;
  height: 52px;
  grid-template-columns: 44px 1fr 42px;
  align-items: center;
  border: 1px solid var(--auth-border);
  border-radius: 9px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.auth-field:focus-within {
  border-color: #ef6371;
  box-shadow: 0 0 0 4px rgb(237 0 23 / 7%);
  transform: translateY(-1px);
}

.auth-field-icon { display: grid; height: 100%; place-items: center; }
.auth-field-icon img { width: 20px; opacity: .62; }

.auth-field input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--auth-text);
  font-size: 12px;
}

.auth-field input::placeholder { color: #9a9da5; }

.password-toggle {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.password-toggle img { width: 19px; opacity: .58; }
.auth-field > small { position: absolute; top: calc(100% + 2px); left: 10px; display: none; color: var(--auth-red); font-size: 9px; }
.auth-field.is-invalid { margin-bottom: 10px; border-color: var(--auth-red); }
.auth-field.is-invalid > small { display: block; }

.auth-agreement,
.auth-form-options,
.auth-form-options label {
  display: flex;
  align-items: center;
}

.auth-agreement { gap: 9px; color: #777b84; font-size: 10px; line-height: 1.45; }
.auth-agreement.is-invalid { color: var(--auth-red); }
.auth-agreement.is-invalid span { text-decoration: underline; text-decoration-color: rgb(237 0 23 / 35%); text-underline-offset: 3px; }
.auth-agreement input,
.auth-form-options input { width: 17px; height: 17px; margin: 0; accent-color: var(--auth-red); }
.auth-agreement a,
.auth-form-options a { color: var(--auth-red); font-weight: 600; }
.auth-form-options { justify-content: space-between; color: #6f737b; font-size: 10px; }
.auth-form-options label { gap: 7px; }

.auth-submit {
  position: relative;
  display: grid;
  min-height: 51px;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(110deg, #dc0016, #f7001c);
  box-shadow: 0 9px 22px rgb(237 0 23 / 20%);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow .18s ease, transform .18s ease;
}

.auth-submit:hover { box-shadow: 0 12px 28px rgb(237 0 23 / 29%); transform: translateY(-1px); }
.auth-submit.is-loading span { opacity: 0; }
.auth-submit i { position: absolute; display: none; width: 20px; height: 20px; border: 2px solid rgb(255 255 255 / 45%); border-top-color: #fff; border-radius: 50%; animation: auth-spin .7s linear infinite; }
.auth-submit.is-loading i { display: block; }
.auth-submit.is-success { background: #209447; }

.auth-form-status { min-height: 0; margin: -3px 0 0; color: #209447; font-size: 10px; text-align: center; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 17px 0;
  color: #989ba2;
  font-size: 10px;
}

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

.social-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.social-auth button { display: flex; min-height: 45px; align-items: center; justify-content: center; gap: 10px; border: 1px solid #dfe1e5; border-radius: 8px; background: #fff; color: #4e5158; font-weight: 600; cursor: pointer; }
.social-auth img { width: 21px; height: 21px; }

.auth-switch-copy { margin: 20px 0 0; color: #777b84; font-size: 11px; text-align: center; }
.auth-switch-copy button { padding: 3px 5px; border: 0; background: transparent; color: var(--auth-red); font-weight: 700; cursor: pointer; }
.auth-back-home { display: block; margin-top: 12px; color: #8b8e95; font-size: 10px; text-align: center; }

@keyframes auth-panel-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes auth-spin { to { transform: rotate(360deg); } }

@media (max-width: 991.98px) {
  .auth-page { padding: 18px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { min-height: 330px; border-radius: 23px 23px 0 0; background-position: 58% 63%; }
  .auth-welcome-copy { width: 300px; padding: 92px 0 30px 34px; }
  .auth-welcome-copy h1 { font-size: 38px; }
  .auth-welcome-copy > p { margin-block: 11px 15px; }
  .auth-benefits { grid-template-columns: repeat(3, max-content); }
  .auth-benefits li { min-width: 0; min-height: 37px; padding-block: 5px; }
  .auth-logo { top: 24px; left: 32px; width: 118px; }
  .auth-card { min-height: 0; margin: -30px 20px 20px; padding: 30px 44px; }
  .auth-scene-dots { bottom: 48px; left: auto; right: 28px; }
}

@media (max-width: 575.98px) {
  .auth-page { display: block; padding: 0; background: #fff; }
  .auth-shell { min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
  .auth-visual { min-height: 250px; border-radius: 0; background-position: 66% 68%; }
  .auth-logo { top: 18px; left: 20px; width: 104px; }
  .auth-welcome-copy { width: 250px; padding: 74px 0 20px 21px; }
  .auth-eyebrow { font-size: 8px; }
  .auth-welcome-copy h1 { font-size: 31px; }
  .auth-welcome-copy > p { max-width: 230px; font-size: 11px; }
  .auth-benefits { display: flex; gap: 6px; }
  .auth-benefits li { min-height: 31px; padding: 4px 8px; font-size: 8px; }
  .auth-benefits img { width: 17px; }
  .auth-scene-dots { bottom: 20px; right: 18px; }
  .auth-card { margin: -18px 0 0; padding: 24px 18px 30px; border-right: 0; border-bottom: 0; border-left: 0; border-radius: 20px 20px 0 0; box-shadow: 0 -12px 32px rgb(36 39 49 / 11%); }
  .auth-panel-heading { display: none; }
  .auth-field { height: 50px; }
  .social-auth { gap: 8px; }
  .social-auth button { gap: 7px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-visual,
  .auth-scene-dots button,
  .auth-tabs button::after,
  .auth-field,
  .auth-submit { transition: none; }
  .auth-panel,
  .auth-submit i { animation: none; }
}
