:root {
  --black: #080808;
  --black-soft: #111111;
  --panel: #171717;
  --panel-light: #202020;

  --white: #ffffff;
  --text: #f4f1ea;
  --muted: #aaa59c;
  --border: rgba(255, 255, 255, 0.12);

  --yellow: #f9c92f;
  --yellow-light: #ffe56c;
  --red: #e73535;
  --green: #67cb5a;

  --error: #ff6767;
  --success: #78df6b;

  --radius-small: 12px;
  --radius-medium: 20px;
  --radius-large: 30px;

  --shadow:
    0 28px 80px rgba(0, 0, 0, 0.42);
}



* {
  box-sizing: border-box;
}



html {
  min-width: 320px;
  min-height: 100%;
  background: var(--black);
}



body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;

  color: var(--text);

  background:
    radial-gradient(
      circle at 80% 0%,
      rgba(249, 201, 47, 0.07),
      transparent 34%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(231, 53, 53, 0.08),
      transparent 32%
    ),
    var(--black);

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}



button,
input {
  font: inherit;
}



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



img {
  display: block;
  max-width: 100%;
}



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



.auth-page {
  display: grid;
  grid-template-columns:
    minmax(430px, 0.92fr)
    minmax(620px, 1.08fr);

  min-height: 100vh;
}



.auth-visual {
  position: sticky;
  top: 0;

  display: flex;
  flex-direction: column;

  min-height: 100vh;
  padding: 38px 48px;

  background-image:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.35),
      rgba(0, 0, 0, 0.63)
    ),
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.25),
      rgba(0, 0, 0, 0.02)
    ),
    url("../images/hero.png");

  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  isolation: isolate;
  overflow: hidden;
}



.auth-visual::after {
  position: absolute;
  inset: 0;
  z-index: -3;

  background:
    linear-gradient(
      145deg,
      rgba(249, 201, 47, 0.07),
      transparent 42%,
      rgba(231, 53, 53, 0.09)
    );

  content: "";
}



.auth-visual-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;

  background:
    radial-gradient(
      circle at 30% 45%,
      rgba(0, 0, 0, 0.15),
      rgba(0, 0, 0, 0.71) 78%
    );
}



.auth-visual-header {
  position: relative;
  z-index: 2;
}



.auth-logo {
  display: inline-flex;
  width: fit-content;
}



.auth-logo img {
  width: min(330px, 100%);
  max-height: 74px;
  object-fit: contain;
  object-position: left center;
}



.auth-visual-content {
  width: min(580px, 100%);
  margin-top: auto;
  margin-bottom: auto;
  padding: 52px 0;
}



.auth-eyebrow,
.auth-form-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  color: var(--yellow);

  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}



.auth-eyebrow::before,
.auth-form-kicker::before {
  width: 32px;
  height: 2px;

  background:
    linear-gradient(
      90deg,
      var(--yellow),
      var(--red)
    );

  content: "";
}



.auth-visual-content h1 {
  margin: 18px 0 22px;

  color: var(--white);

  font-size: clamp(3.2rem, 5.4vw, 6.2rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.92;

  text-shadow:
    0 8px 35px rgba(0, 0, 0, 0.55);
}



.auth-visual-content > p {
  max-width: 570px;
  margin: 0;

  color: rgba(255, 255, 255, 0.83);

  font-size: 1.03rem;
  line-height: 1.8;

  text-shadow:
    0 4px 18px rgba(0, 0, 0, 0.7);
}



.auth-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 18px;

  margin: 34px 0 0;
  padding: 0;

  list-style: none;
}



.auth-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;

  color: rgba(255, 255, 255, 0.89);

  font-size: 0.87rem;
  font-weight: 700;
}



.auth-benefits li span {
  display: grid;
  flex: 0 0 25px;
  place-items: center;

  width: 25px;
  height: 25px;

  color: #171205;
  background: var(--yellow);
  border-radius: 50%;

  font-size: 0.7rem;
  font-weight: 900;
}



.auth-visual-footer {
  display: flex;
  align-items: center;
  gap: 13px;

  color: rgba(255, 255, 255, 0.62);

  font-size: 0.75rem;
}



.age-badge {
  display: grid;
  place-items: center;

  width: 39px;
  height: 39px;

  color: var(--white);
  background: var(--red);
  border-radius: 50%;

  font-size: 0.72rem;
  font-weight: 900;
}



.auth-form-side {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}



.auth-mobile-header {
  display: none;
}



.auth-form-wrapper {
  width: min(720px, calc(100% - 64px));
  margin: auto;
  padding: 70px 0;
}



.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  margin-bottom: 40px;

  color: var(--muted);

  font-size: 0.82rem;
  font-weight: 750;

  transition:
    color 180ms ease,
    transform 180ms ease;
}



.back-link:hover {
  color: var(--yellow);
  transform: translateX(-3px);
}



.auth-heading {
  margin-bottom: 34px;
}



.auth-heading h2 {
  margin: 12px 0 12px;

  color: var(--white);

  font-size: clamp(2.3rem, 4vw, 3.6rem);
  letter-spacing: -0.05em;
  line-height: 1;
}



.auth-heading p {
  max-width: 570px;
  margin: 0;

  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.75;
}



.auth-form {
  padding: 32px;

  background:
    linear-gradient(
      145deg,
      rgba(29, 29, 29, 0.98),
      rgba(14, 14, 14, 0.99)
    );

  border: 1px solid var(--border);
  border-radius: var(--radius-large);

  box-shadow: var(--shadow);
}



.form-message {
  margin-bottom: 24px;
  padding: 14px 16px;

  border: 1px solid transparent;
  border-radius: var(--radius-small);

  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.55;
}



.form-message.is-error {
  color: #ffd5d5;
  background: rgba(231, 53, 53, 0.13);
  border-color: rgba(231, 53, 53, 0.32);
}



.form-message.is-success {
  color: #ddffda;
  background: rgba(103, 203, 90, 0.12);
  border-color: rgba(103, 203, 90, 0.31);
}



.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}



.form-group {
  display: grid;
  align-content: start;
  gap: 9px;
}



.form-group-full {
  grid-column: 1 / -1;
}



.form-group label {
  color: #e7e3dc;

  font-size: 0.78rem;
  font-weight: 800;
}



.form-group small {
  color: #77736d;
  font-size: 0.7rem;
}



.input-wrap {
  position: relative;
}



.input-wrap input {
  width: 100%;
  height: 54px;
  padding: 0 54px 0 46px;

  color: var(--white);

  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;

  font-size: 0.88rem;
  outline: none;

  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}



.input-wrap input::placeholder {
  color: #77736d;
}



.input-wrap input:hover {
  background: rgba(255, 255, 255, 0.07);
}



.input-wrap input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(249, 201, 47, 0.75);

  box-shadow:
    0 0 0 4px rgba(249, 201, 47, 0.1);
}



.input-wrap input:invalid:not(:placeholder-shown) {
  border-color: rgba(231, 53, 53, 0.5);
}



.input-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 2;

  display: grid;
  place-items: center;

  width: 20px;

  font-size: 0.92rem;

  pointer-events: none;
  transform: translateY(-50%);
}



.password-toggle {
  position: absolute;
  top: 50%;
  right: 13px;

  padding: 6px;

  color: var(--yellow);
  background: transparent;
  border: 0;

  font-size: 0.68rem;
  font-weight: 850;

  cursor: pointer;
  transform: translateY(-50%);
}



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



input[type="date"] {
  color-scheme: dark;
}



.password-requirements {
  margin-top: 24px;
  padding: 17px;

  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-small);
}



.password-requirements > strong {
  display: block;
  margin-bottom: 12px;

  color: #d6d1c8;
  font-size: 0.74rem;
}



.requirement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 16px;
}



.requirement {
  display: flex;
  align-items: center;
  gap: 8px;

  color: #77736d;
  font-size: 0.7rem;

  transition: color 180ms ease;
}



.requirement i {
  width: 7px;
  height: 7px;

  background: #595652;
  border-radius: 50%;

  transition:
    background-color 180ms ease,
    box-shadow 180ms ease;
}



.requirement.is-valid {
  color: #b8eeb2;
}



.requirement.is-valid i {
  background: var(--success);

  box-shadow:
    0 0 0 4px rgba(120, 223, 107, 0.1);
}



.agreement-list {
  display: grid;
  gap: 14px;

  margin-top: 25px;
}



.checkbox-row {
  position: relative;

  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;

  color: #aaa59c;

  font-size: 0.76rem;
  line-height: 1.6;

  cursor: pointer;
}



.checkbox-row input {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;
  pointer-events: none;
}



.custom-checkbox {
  position: relative;

  display: grid;
  place-items: center;

  width: 20px;
  height: 20px;
  margin-top: 1px;

  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.21);
  border-radius: 6px;

  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}



.custom-checkbox::after {
  width: 8px;
  height: 4px;

  border-bottom: 2px solid #171205;
  border-left: 2px solid #171205;

  content: "";
  opacity: 0;
  transform: rotate(-45deg) translateY(-1px);
}



.checkbox-row input:checked + .custom-checkbox {
  background: var(--yellow);
  border-color: var(--yellow);

  box-shadow:
    0 0 0 4px rgba(249, 201, 47, 0.09);
}



.checkbox-row input:checked + .custom-checkbox::after {
  opacity: 1;
}



.checkbox-row input:focus-visible + .custom-checkbox {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}



.checkbox-row a {
  color: var(--yellow);
  font-weight: 800;
}



.checkbox-row a:hover {
  color: var(--yellow-light);
  text-decoration: underline;
}



.auth-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  min-height: 58px;
  margin-top: 28px;
  padding: 0 24px;

  color: #181308;

  background:
    linear-gradient(
      135deg,
      var(--yellow-light),
      var(--yellow) 52%,
      #ecb31c
    );

  border: 0;
  border-radius: 999px;

  box-shadow:
    0 15px 34px rgba(249, 201, 47, 0.22);

  font-size: 0.93rem;
  font-weight: 900;

  cursor: pointer;

  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}



.auth-submit:hover {
  transform: translateY(-2px);

  box-shadow:
    0 19px 42px rgba(249, 201, 47, 0.32);
}



.auth-submit:active {
  transform: translateY(0);
}



.auth-security-note {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;

  margin: 17px 0 0;

  color: #77736d;

  font-size: 0.68rem;
  line-height: 1.55;
  text-align: center;
}



.auth-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  margin-top: 26px;

  color: var(--muted);
  font-size: 0.83rem;
}



.auth-switch a {
  color: var(--yellow);
  font-weight: 850;
}



.auth-switch a:hover {
  color: var(--yellow-light);
  text-decoration: underline;
}



.auth-form-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;

  padding: 24px 32px;

  color: #6f6b65;

  border-top: 1px solid rgba(255, 255, 255, 0.07);

  font-size: 0.7rem;
}



.auth-form-footer a:hover {
  color: var(--yellow);
}



@media (max-width: 1180px) {

  .auth-page {
    grid-template-columns:
      minmax(350px, 0.78fr)
      minmax(590px, 1.22fr);
  }

  .auth-visual {
    padding: 32px;
  }

  .auth-benefits {
    grid-template-columns: 1fr;
  }

}



@media (max-width: 940px) {

  .auth-page {
    display: block;
  }

  .auth-visual {
    position: relative;

    min-height: 480px;
    padding: 28px 30px;

    background-position: center 46%;
  }

  .auth-visual-content {
    width: min(620px, 100%);
    margin: auto 0;
    padding: 52px 0 30px;
  }

  .auth-visual-content h1 {
    max-width: 590px;
    font-size: clamp(3.3rem, 9vw, 5.4rem);
  }

  .auth-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-form-side {
    min-height: auto;
  }

  .auth-form-wrapper {
    padding: 70px 0;
  }

}



@media (max-width: 680px) {

  .auth-visual {
    display: none;
  }

  .auth-mobile-header {
    display: flex;
    align-items: center;

    min-height: 76px;
    padding: 12px 18px;

    background:
      linear-gradient(
        90deg,
        #0d0d0d,
        #18140c
      );

    border-bottom: 1px solid var(--border);
  }

  .auth-mobile-logo img {
    width: min(265px, 78vw);
    max-height: 54px;
    object-fit: contain;
    object-position: left center;
  }

  .auth-form-wrapper {
    width: calc(100% - 30px);
    padding: 40px 0 54px;
  }

  .back-link {
    margin-bottom: 30px;
  }

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

  .auth-heading h2 {
    font-size: clamp(2.3rem, 11vw, 3.5rem);
  }

  .auth-form {
    padding: 24px 18px;
    border-radius: 23px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group-full {
    grid-column: auto;
  }

  .requirement-grid {
    grid-template-columns: 1fr;
  }

  .auth-form-footer {
    padding-right: 18px;
    padding-left: 18px;
  }

}



@media (max-width: 420px) {

  .auth-mobile-header {
    min-height: 68px;
  }

  .auth-mobile-logo img {
    max-height: 47px;
  }

  .auth-form-wrapper {
    width: calc(100% - 22px);
  }

  .auth-heading h2 {
    font-size: 2.35rem;
  }

  .auth-form {
    padding: 21px 15px;
  }

  .input-wrap input {
    height: 52px;
    padding-right: 50px;
    padding-left: 42px;
  }

  .input-icon {
    left: 13px;
  }

  .password-toggle {
    right: 9px;
  }

  .auth-switch {
    display: grid;
    gap: 3px;
    text-align: center;
  }

}
