.auth-page {
  min-height: 100vh;
  background: #ffffff;
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 clamp(28px, 5vw, 72px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.back-link {
  color: #1f1f1f;
  font-size: 14px;
  font-weight: 650;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
  align-items: center;
  gap: clamp(54px, 8vw, 120px);
  width: min(1120px, calc(100% - 56px));
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  padding: 72px 0;
}

.auth-intro {
  max-width: 560px;
}

.auth-kicker {
  margin: 0 0 18px;
  color: #777777;
  font-size: 13px;
  font-weight: 720;
}

.auth-intro h1 {
  margin: 0;
  color: #050505;
  font-size: clamp(58px, 7vw, 88px);
  font-weight: 760;
  line-height: 1.04;
  letter-spacing: 0;
}

.auth-intro p {
  max-width: 480px;
  margin: 24px 0 0;
  color: #6b6b6b;
  font-size: 20px;
  line-height: 1.7;
}

.auth-panel {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 34px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.06);
}

.auth-title {
  margin-bottom: 28px;
}

.auth-title span {
  display: block;
  margin-bottom: 8px;
  color: #777777;
  font-size: 13px;
  font-weight: 720;
}

.auth-title h2 {
  margin: 0;
  color: #050505;
  font-size: 28px;
  font-weight: 730;
  line-height: 1.22;
}

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

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

.auth-form label > span {
  color: #1f1f1f;
  font-size: 14px;
  font-weight: 650;
}

.auth-form input[type="text"],
.auth-form input[type="password"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid #dedede;
  border-radius: 8px;
  padding: 0 14px;
  background: #ffffff;
  color: #111111;
  font: inherit;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.auth-form input:focus {
  border-color: #050505;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 30px;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4a4a4a;
  font-size: 14px;
}

.remember input {
  width: 16px;
  height: 16px;
  accent-color: #050505;
}

.link-button {
  padding: 0;
  background: transparent;
  color: #050505;
  font-size: 14px;
  font-weight: 650;
}

.auth-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  border-radius: 999px;
  background: #050505;
  color: #ffffff;
  font-size: 15px;
  font-weight: 720;
}

.switch-copy {
  margin: 24px 0 0;
  color: #6b6b6b;
  text-align: center;
  font-size: 14px;
}

.switch-copy a {
  color: #050505;
  font-weight: 720;
}

@media (max-width: 860px) {
  .auth-header {
    min-height: 58px;
    padding: 0 18px;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    gap: 34px;
    width: min(460px, calc(100% - 32px));
    min-height: calc(100vh - 58px);
    padding: 44px 0 56px;
  }

  .auth-intro {
    text-align: left;
  }

  .auth-intro h1 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .auth-intro p {
    margin-top: 16px;
    font-size: 16px;
  }

  .auth-panel {
    padding: 24px;
    box-shadow: none;
  }

  .auth-title h2 {
    font-size: 24px;
  }
}
