
:root {
  --auth-bg: #080c0f;
  --auth-bg-2: #0c1115;
  --auth-card: #10171b;
  --auth-card-2: #141c21;
  --auth-text: #f7f9fb;
  --auth-muted: #9ba6b2;
  --auth-soft: #c5ccd4;
  --auth-line: rgba(255, 255, 255, .105);
  --auth-line-strong: rgba(255, 255, 255, .18);
  --auth-yellow: #ffc400;
  --auth-yellow-2: #ffb000;
  --auth-orange: #ff4d18;
  --auth-danger: #ff4137;
  --auth-success: #35c65a;
  --auth-shadow: 0 24px 80px rgba(0, 0, 0, .42);
  --auth-radius: 18px;
  --auth-radius-sm: 11px;
  --auth-container: 1280px;
  --auth-font: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body.et-auth-body {
  margin: 0;
  min-width: 320px;
  font-family: var(--auth-font);
  color: var(--auth-text);
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 196, 0, .16), transparent 30%),
    radial-gradient(circle at 80% 28%, rgba(255, 77, 24, .06), transparent 25%),
    linear-gradient(180deg, #070a0d 0%, #0b1013 42%, #070a0d 100%);
  letter-spacing: -.018em;
}

a {
  color: inherit;
}

.et-auth-top {
  min-height: 112px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--auth-line);
  background:
    linear-gradient(180deg, rgba(18, 25, 29, .96), rgba(10, 15, 18, .96)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 1px, transparent 1px 12px);
  color: #fff;
  backdrop-filter: blur(18px);
}

.et-auth-top__inner {
  width: min(var(--auth-container), calc(100% - 48px));
  margin: 0 auto;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.et-auth-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 196, 0, .18);
  background: rgba(255, 196, 0, .035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.et-auth-logo img {
  width: 238px;
  height: auto;
  max-height: 64px;
  filter: brightness(0) invert(1);
}

.et-auth-chat {
  position: absolute;
  right: 0;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--auth-text);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  padding: 0 14px;
  border: 1px solid var(--auth-line);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
}

.et-auth-chat span {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 999px;
  background: var(--auth-yellow);
  color: transparent;
  box-shadow: 0 0 0 5px rgba(255, 196, 0, .13);
}

.et-auth-main {
  min-height: calc(100vh - 192px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(46px, 6vw, 84px) 24px 74px;
}

.et-auth-screen {
  width: min(var(--auth-container), 100%);
  display: grid;
  grid-template-columns: minmax(430px, 560px) minmax(260px, 390px);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.et-auth-screen--register {
  grid-template-columns: minmax(560px, 820px);
  justify-content: center;
}

.et-auth-card {
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid var(--auth-line);
  border-radius: var(--auth-radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 196, 0, .1), transparent 28%),
    linear-gradient(180deg, rgba(20, 28, 33, .96), rgba(12, 17, 21, .98));
  box-shadow: var(--auth-shadow);
}

.et-auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,.035), transparent 26%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 1px, transparent 1px 10px);
  opacity: .75;
}

.et-auth-card > * {
  position: relative;
  z-index: 1;
}

.et-auth-card--wide {
  max-width: 820px;
}

.et-auth-card__head {
  margin-bottom: 28px;
}

.et-auth-kicker {
  margin: 0 0 10px;
  color: var(--auth-yellow);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.et-auth-card h1 {
  margin: 0 0 14px;
  color: var(--auth-text);
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.02;
  font-weight: 850;
  letter-spacing: -.065em;
}

.et-auth-card__head p {
  max-width: 620px;
  margin: 0;
  color: var(--auth-soft);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 500;
}

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

.et-auth-field {
  display: grid;
  gap: 8px;
}

.et-auth-field > span {
  color: var(--auth-text);
  font-size: 15px;
  line-height: 1.15;
  font-weight: 800;
}

.et-auth-field em {
  color: var(--auth-muted);
  font-style: normal;
  font-weight: 600;
}

.et-auth-field small {
  display: block;
  margin-top: -4px;
  color: var(--auth-muted);
  font-size: 13px;
  font-weight: 600;
}

.et-auth-field input {
  width: 100%;
  height: 54px;
  border: 1px solid var(--auth-line-strong);
  border-radius: 10px;
  background: #0a0f12;
  color: var(--auth-text);
  padding: 0 16px;
  font-size: 15px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.et-auth-field input::placeholder {
  color: #737e89;
}

.et-auth-field input:focus {
  border-color: rgba(255, 196, 0, .75);
  box-shadow:
    0 0 0 3px rgba(255, 196, 0, .15),
    inset 0 1px 0 rgba(255,255,255,.04);
}

.et-auth-field--password {
  position: relative;
}

.et-auth-field--password input {
  padding-right: 56px;
}

.et-password-toggle {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--auth-line);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  color: var(--auth-muted);
  font-size: 19px;
  cursor: pointer;
}

.et-password-toggle:hover,
.et-password-toggle.is-visible {
  color: var(--auth-yellow);
  border-color: rgba(255, 196, 0, .35);
}

.et-auth-submit {
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--auth-yellow), var(--auth-yellow-2));
  color: #111;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.et-auth-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 16px 28px rgba(255, 196, 0, .18);
}

.et-auth-under {
  display: grid;
  gap: 18px;
  color: var(--auth-soft);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 650;
}

.et-auth-under a {
  color: var(--auth-text);
  text-decoration: underline;
  text-decoration-color: rgba(255, 196, 0, .6);
  text-underline-offset: 4px;
}

.et-auth-under a:hover {
  color: var(--auth-yellow);
}

.et-auth-alert {
  margin: 0 0 24px;
  padding: 14px 16px;
  border: 1px solid var(--auth-line);
  border-left: 5px solid;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  font-size: 14px;
  font-weight: 700;
}

.et-auth-alert--error {
  border-left-color: var(--auth-danger);
  color: #ffd3d0;
}

.et-auth-alert--success {
  border-left-color: var(--auth-success);
  color: #d4ffdd;
}

.et-auth-side {
  margin-top: 72px;
  padding: 28px;
  border: 1px solid var(--auth-line);
  border-radius: var(--auth-radius);
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 196, 0, .13), transparent 26%),
    linear-gradient(180deg, rgba(20, 28, 33, .92), rgba(12, 17, 21, .95));
  box-shadow: var(--auth-shadow);
}

.et-auth-side h2 {
  margin: 0 0 16px;
  color: var(--auth-text);
  font-size: 25px;
  line-height: 1.12;
  letter-spacing: -.05em;
}

.et-auth-side ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 13px;
  color: var(--auth-soft);
  font-size: 14px;
  font-weight: 600;
}

.et-auth-side li {
  position: relative;
  padding-left: 26px;
}

.et-auth-side li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--auth-yellow);
  box-shadow: 0 0 0 4px rgba(255, 196, 0, .13);
}

.et-type-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}

.et-type-switch label {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 86px;
  padding: 18px 18px 18px 52px;
  border: 1px solid var(--auth-line);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.et-type-switch label::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 22px;
  width: 18px;
  height: 18px;
  border: 2px solid #69737f;
  border-radius: 999px;
}

.et-type-switch label.is-active {
  border-color: rgba(255, 196, 0, .58);
  background: rgba(255, 196, 0, .075);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.et-type-switch label.is-active::before {
  border-color: var(--auth-yellow);
  background: radial-gradient(circle, var(--auth-yellow) 0 42%, transparent 45%);
}

.et-type-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.et-type-switch strong {
  color: var(--auth-text);
  font-size: 16px;
  line-height: 1.15;
}

.et-type-switch span {
  color: var(--auth-muted);
  font-size: 13px;
  font-weight: 600;
}

.et-auth-section {
  margin-top: 8px;
}

.et-auth-section h2 {
  margin: 0 0 6px;
  color: var(--auth-text);
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -.045em;
}

.et-auth-section h2 span {
  color: var(--auth-muted);
  font-size: 14px;
  letter-spacing: 0;
}

.et-auth-section p {
  margin: 0;
  color: var(--auth-muted);
  font-size: 14px;
  font-weight: 600;
}

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

.et-auth-field--wide {
  grid-column: 1 / -1;
}

.et-company-box {
  display: none;
}

.et-company-box.is-visible {
  display: block;
}

.et-auth-details {
  border: 1px solid var(--auth-line);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
  padding: 0;
  overflow: hidden;
}

.et-auth-details summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--auth-text);
  font-size: 16px;
  font-weight: 800;
}

.et-auth-details[open] summary {
  border-bottom: 1px solid var(--auth-line);
}

.et-auth-details .et-auth-grid-two {
  padding: 18px;
}

.et-consents {
  display: grid;
  gap: 13px;
  color: var(--auth-soft);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

.et-consents label {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
}

.et-consents input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--auth-yellow);
}

.et-consents a {
  color: var(--auth-text);
  text-decoration: underline;
  text-decoration-color: rgba(255, 196, 0, .6);
  text-underline-offset: 3px;
}

.et-auth-footer {
  min-height: 80px;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--auth-line);
  background: #05080a;
  color: var(--auth-muted);
}

.et-auth-footer__inner {
  width: min(var(--auth-container), calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
  font-weight: 700;
}

.et-auth-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.et-auth-footer a {
  color: var(--auth-soft);
  text-decoration: none;
}

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

@media (max-width: 920px) {
  .et-auth-top__inner {
    justify-content: center;
  }

  .et-auth-chat {
    display: none;
  }

  .et-auth-screen,
  .et-auth-screen--register {
    grid-template-columns: 1fr;
  }

  .et-auth-side {
    margin-top: 0;
  }

  .et-auth-main {
    padding: 38px 18px 54px;
  }

  .et-auth-grid-two,
  .et-type-switch {
    grid-template-columns: 1fr;
  }

  .et-auth-field--wide {
    grid-column: auto;
  }

  .et-auth-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 0;
  }
}

@media (max-width: 540px) {
  .et-auth-top {
    min-height: 84px;
  }

  .et-auth-logo {
    padding: 8px 12px;
  }

  .et-auth-logo img {
    width: 190px;
  }

  .et-auth-card {
    padding: 24px 18px;
  }

  .et-auth-card h1 {
    font-size: 36px;
  }

  .et-auth-card__head p,
  .et-auth-under,
  .et-auth-field > span {
    font-size: 14px;
  }

  .et-auth-field input {
    height: 52px;
    font-size: 15px;
  }
}
