:root {
  --auth-blue: #3e68ff;
  --auth-blue-dark: #2749c9;
  --auth-violet: #7656ff;
  --auth-ink: #101828;
  --auth-text: #344054;
  --auth-muted: #667085;
  --auth-line: #dce3ef;
  --auth-soft: #f4f7fc;
  --auth-white: #ffffff;
}

* {
  box-sizing: border-box;
}

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

body.arttinov-auth {
  background: var(--auth-white);
  color: var(--auth-text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.auth-page {
  display: grid;
  grid-template-columns: minmax(420px, 1.08fr) minmax(420px, 0.92fr);
  min-height: 100vh;
}

.auth-story {
  background-color: var(--auth-soft);
  background-image: linear-gradient(rgba(62, 104, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 104, 255, 0.055) 1px, transparent 1px);
  background-size: 36px 36px;
  border-right: 1px solid var(--auth-line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  overflow: hidden;
  padding: 42px clamp(42px, 6vw, 92px);
  position: relative;
}

.auth-story::before {
  background: var(--auth-blue);
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.auth-logo {
  height: auto;
  width: 176px;
}

.auth-eyebrow {
  color: var(--auth-blue-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.auth-story h1 {
  color: var(--auth-ink);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0;
  max-width: 680px;
}

.auth-story h1 span {
  color: var(--auth-blue);
}

.auth-lead {
  color: var(--auth-muted);
  font-size: 17px;
  line-height: 1.7;
  margin: 26px 0 0;
  max-width: 610px;
}

.auth-protocol {
  border-bottom: 1px solid var(--auth-line);
  border-top: 1px solid var(--auth-line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 38px;
}

.auth-protocol div {
  min-height: 86px;
  padding: 16px 16px 16px 0;
}

.auth-protocol div + div {
  border-left: 1px solid var(--auth-line);
  padding-left: 16px;
}

.auth-protocol small {
  color: var(--auth-blue-dark);
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.auth-protocol strong {
  color: var(--auth-ink);
  font-size: 13px;
  line-height: 1.4;
}

.auth-trust {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 34px;
}

.auth-trust span {
  color: var(--auth-muted);
  font-size: 12px;
}

.auth-trust strong {
  color: var(--auth-ink);
  font-size: 16px;
  letter-spacing: 0.1em;
}

.auth-client-logo {
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: center;
}

.auth-client-logo--kdi {
  height: 43px;
  width: 62px;
}

.auth-client-logo--ojk {
  height: 37px;
  width: 86px;
}

.auth-form-side {
  align-items: center;
  background: var(--auth-white);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 42px clamp(28px, 5vw, 78px);
}

.auth-form-wrap {
  max-width: 460px;
  width: 100%;
}

.auth-form-wrap.auth-form-wrap--wide {
  max-width: 650px;
}

.auth-form-index {
  align-items: center;
  color: var(--auth-blue-dark);
  display: flex;
  font-size: 11px;
  font-weight: 800;
  gap: 10px;
  letter-spacing: 0.12em;
  margin-bottom: 26px;
  text-transform: uppercase;
}

.auth-form-index::before {
  background: var(--auth-blue);
  content: "";
  height: 2px;
  width: 34px;
}

.auth-form-wrap h2 {
  color: var(--auth-ink);
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 8px;
}

.auth-form-copy {
  color: var(--auth-muted);
  line-height: 1.6;
  margin: 0 0 30px;
}

.arttinov-auth .form-group {
  margin-bottom: 18px;
}

.arttinov-auth label {
  color: var(--auth-text);
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.arttinov-auth .form-control {
  background: var(--auth-white);
  border: 1px solid #cdd6e5;
  border-radius: 6px;
  color: var(--auth-ink);
  font-family: inherit;
  font-size: 14px;
  min-height: 48px;
  padding: 12px 14px;
  width: 100%;
}

.arttinov-auth textarea.form-control {
  min-height: 92px;
  resize: vertical;
}

.arttinov-auth .form-control:focus {
  border-color: var(--auth-blue);
  box-shadow: 0 0 0 3px rgba(62, 104, 255, 0.12);
  outline: 0;
}

.auth-password {
  position: relative;
}

.auth-password .form-control {
  padding-right: 74px;
}

.auth-password button {
  background: none;
  border: 0;
  color: var(--auth-blue-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 8px;
  position: absolute;
  right: 8px;
  top: 6px;
}

.auth-submit {
  align-items: center;
  background: var(--auth-blue);
  border: 1px solid var(--auth-blue);
  border-radius: 6px;
  color: var(--auth-white);
  cursor: pointer;
  display: flex;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  justify-content: space-between;
  min-height: 50px;
  padding: 0 18px;
  transition: background 160ms ease, transform 160ms ease;
  width: 100%;
}

.auth-submit:hover {
  background: var(--auth-blue-dark);
  transform: translateY(-1px);
}

.auth-switch {
  color: var(--auth-muted);
  font-size: 13px;
  margin: 22px 0 0;
  text-align: center;
}

.auth-switch a {
  color: var(--auth-blue-dark);
  font-weight: 800;
  text-decoration: none;
}

.auth-notice {
  background: #f7f9fd;
  border-left: 3px solid var(--auth-violet);
  color: var(--auth-muted);
  font-size: 12px;
  line-height: 1.55;
  margin: 20px 0;
  padding: 12px 14px;
}

.auth-mobile-logo {
  display: none;
  margin-bottom: 38px;
}

.auth-mobile-logo img {
  width: 158px;
}

.arttinov-auth .toast {
  background: var(--auth-white);
  border: 1px solid #efb5b0;
  border-radius: 6px;
  box-shadow: 0 14px 36px rgba(16, 24, 40, 0.14);
  z-index: 1000;
}

@media (max-width: 1050px) {
  .auth-page {
    grid-template-columns: minmax(350px, 0.9fr) minmax(420px, 1.1fr);
  }

  .auth-story {
    padding: 36px;
  }

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

  .auth-protocol div + div {
    border-left: 0;
    border-top: 1px solid var(--auth-line);
    padding-left: 0;
  }
}

@media (max-width: 920px) {
  .auth-page {
    display: block;
  }

  .auth-story {
    display: none;
  }

  .auth-form-side {
    min-height: 100vh;
    padding: 32px 20px;
  }

  .auth-mobile-logo {
    display: block;
  }

  .auth-form-wrap,
  .auth-form-wrap.auth-form-wrap--wide {
    max-width: 560px;
  }
}
