@import url("/paleta.css?v=20260227a");

:root {
  --auth-split-dark: #040507;
  --auth-split-light: #f6f7fb;
  --auth-border: rgba(15, 23, 42, 0.12);
  --auth-field-border: rgba(100, 116, 139, 0.32);
  --auth-field-border-focus: rgba(12, 74, 110, 0.82);
  --auth-field-shadow-focus: rgba(14, 165, 233, 0.14);
  --auth-text-muted: #5b6577;
}

body.auth-split-page {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(90deg, var(--auth-split-dark) 0%, var(--auth-split-dark) 50%, var(--auth-split-light) 50%, var(--auth-split-light) 100%);
  color: #111827;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-aside {
  position: relative;
  background:
    radial-gradient(70% 50% at 0% 100%, rgba(44, 55, 79, 0.36), transparent 64%),
    radial-gradient(64% 60% at 100% 0%, rgba(18, 26, 44, 0.56), transparent 70%),
    var(--auth-split-dark);
  color: #f8fafc;
  padding: 34px 44px;
  display: flex;
  flex-direction: column;
}

.auth-back {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(241, 245, 249, 0.94);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 8px 12px 8px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.auth-back:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
}

.auth-back__icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.auth-back__icon svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-back img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.auth-aside__content {
  margin-top: auto;
  margin-bottom: auto;
  max-width: 460px;
  padding: 28px 0;
}

.auth-aside__kicker {
  margin: 0 0 14px;
  font-size: clamp(23px, 3.2vw, 39px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #ffffff;
}

.auth-aside__title {
  margin: 0;
  font-size: clamp(20px, 1.9vw, 28px);
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.94);
  font-weight: 600;
}

.auth-aside__description {
  margin: 14px 0 0;
  color: rgba(226, 232, 240, 0.82);
  font-size: 14px;
  line-height: 1.6;
  max-width: 40ch;
}

.auth-panel {
  background: var(--auth-split-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

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

.auth__card {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--auth-border);
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
  padding: clamp(24px, 4.5vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth__headline {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.auth__headline h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.auth__headline p {
  margin: 0;
  color: var(--auth-text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.auth__alert {
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 12px;
  line-height: 1.45;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.08);
  color: #b91c1c;
}

.auth__alert--success {
  border-color: rgba(34, 197, 94, 0.34);
  background: rgba(34, 197, 94, 0.08);
  color: #166534;
}

.auth__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth__form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.auth__form label span {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.auth__form input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--auth-field-border);
  padding: 12px 13px;
  font-size: 14px;
  color: #0f172a;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth__form input::placeholder {
  color: #94a3b8;
}

.auth__form input:focus {
  outline: none;
  border-color: var(--auth-field-border-focus);
  box-shadow: 0 0 0 4px var(--auth-field-shadow-focus);
}

.auth__submit {
  margin-top: 3px;
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #141b2d 0%, #0d111a 100%);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.auth__submit:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.26);
}

.auth__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.auth__links {
  margin-top: 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.auth__links a {
  color: #0f172a;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(15, 23, 42, 0.22);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.auth__links a:hover {
  color: #020617;
  text-decoration-color: rgba(2, 6, 23, 0.55);
}

@media (max-width: 980px) {
  body.auth-split-page {
    background: var(--auth-split-light);
  }

  .auth-shell {
    grid-template-columns: 1fr;
    min-height: 100vh;
  }

  .auth-aside {
    min-height: 35vh;
    padding: 22px 20px 24px;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
  }

  .auth-aside__content {
    margin-top: 26px;
    margin-bottom: 0;
    padding: 0;
    max-width: none;
  }

  .auth-aside__kicker {
    font-size: clamp(26px, 9vw, 34px);
    margin-bottom: 10px;
  }

  .auth-aside__title {
    font-size: clamp(18px, 4.6vw, 23px);
  }

  .auth-aside__description {
    font-size: 13px;
    max-width: none;
  }

  .auth-panel {
    padding: 22px 14px 26px;
    align-items: flex-start;
    margin-top: -8px;
  }

  .auth {
    max-width: 520px;
  }

  .auth__card {
    border-radius: 17px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.13);
  }
}

@media (max-width: 520px) {
  .auth-back {
    font-size: 12px;
    gap: 8px;
    padding: 7px 10px 7px 7px;
  }

  .auth-back img {
    width: 18px;
    height: 18px;
  }

  .auth__headline h2 {
    font-size: 23px;
  }

  .auth__form input {
    font-size: 16px;
  }

  .auth__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
