/* =========================================================
   UCore — вход / SSO
   ========================================================= */

.auth-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(37, 99, 235, .08), transparent 34%),
    radial-gradient(circle at 88% 78%, rgba(20, 184, 166, .08), transparent 32%),
    #f3f7fc;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 42px 24px;
}

.auth-card {
  width: min(1120px, 100%);
  min-height: 610px;
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dbe5f0;
  border-radius: 26px;
  box-shadow: 0 28px 72px rgba(15, 43, 89, .14);
}

.auth-brand-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 42px;
  color: #fff;
  background: linear-gradient(145deg, #123464 0%, #18477f 60%, #1a4f8f 100%);
}

.auth-brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, #2f7bf4, #16c2bf);
}

.auth-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auth-brand-copy strong {
  font-size: 20px;
  line-height: 1.05;
}

.auth-brand-copy small {
  color: #8ed8ff;
  font-size: 12px;
}

.auth-brand-main {
  position: relative;
  z-index: 2;
  max-width: 440px;
  margin-top: 82px;
}

.auth-eyebrow,
.auth-form-eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.auth-eyebrow {
  color: #7eb7ff;
}

.auth-brand-main h1 {
  margin: 18px 0 18px;
  color: #fff;
  font-size: clamp(42px, 5vw, 62px);
  line-height: .98;
  letter-spacing: -.04em;
}

.auth-brand-main p {
  max-width: 420px;
  margin: 0;
  color: #d8e7f8;
  font-size: 17px;
  line-height: 1.65;
}

.auth-brand-benefit {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 13px;
  width: min(100%, 390px);
  margin-top: auto;
  padding: 17px 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 15px;
}

.auth-benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  color: #67ead2;
  background: rgba(20, 184, 166, .14);
  border-radius: 50%;
  font-weight: 800;
}

.auth-brand-benefit > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.auth-brand-benefit strong {
  font-size: 13px;
}

.auth-brand-benefit small {
  color: #c6d7ea;
  font-size: 11px;
}

.auth-orbit {
  position: absolute;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 50%;
  pointer-events: none;
}

.auth-orbit-one {
  width: 360px;
  height: 360px;
  right: -120px;
  top: 64px;
}

.auth-orbit-two {
  width: 210px;
  height: 210px;
  right: -34px;
  bottom: -72px;
}

.auth-form-panel {
  display: grid;
  place-items: center;
  padding: 58px;
  background: #fff;
}

.auth-form-wrap {
  width: min(100%, 420px);
}

.auth-form-eyebrow {
  color: #2563eb;
  margin-bottom: 14px;
}

.auth-form-wrap h2 {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.auth-subtitle {
  margin: 0 0 30px;
  color: #72809a;
  font-size: 15px;
  line-height: 1.55;
}

.auth-error {
  margin: -8px 0 18px;
  padding: 12px 14px;
  color: #9f1f1f;
  background: #fff3f3;
  border: 1px solid #efc7c7;
  border-radius: 11px;
}

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

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  color: #1f2937;
  font-size: 13px;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: var(--text);
  background: #fff;
  border: 1px solid #cfd8e6;
  border-radius: 11px;
  font: inherit;
}

.auth-form input:focus {
  border-color: #2f6ce5;
  outline: 3px solid rgba(47, 108, 229, .10);
}

.auth-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
  padding: 10px 12px 10px 18px;
  color: #fff;
  background: linear-gradient(90deg, #2f6ce5, #3267d8);
  border: 0;
  border-radius: 11px;
  font-weight: 750;
  font-size: 15px;
  box-shadow: 0 10px 22px rgba(47, 108, 229, .18);
}

.auth-submit:hover {
  color: #fff;
  background: linear-gradient(90deg, #275fd1, #2859c6);
}

.auth-submit-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,.14);
  border-radius: 9px;
  font-size: 18px;
}

.auth-divider {
  height: 1px;
  margin: 24px 0 20px;
  background: #e3e8ef;
}

.auth-security-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: #7a879b;
}

.auth-security-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  color: #2563eb;
  background: #eef4ff;
  border-radius: 50%;
  font-weight: 800;
}

.auth-security-note p {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .auth-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .auth-brand-panel {
    min-height: 360px;
    padding: 32px;
  }

  .auth-brand-main {
    margin-top: 48px;
  }

  .auth-brand-main h1 {
    font-size: 42px;
  }

  .auth-brand-benefit {
    margin-top: 44px;
  }

  .auth-form-panel {
    padding: 42px 32px;
  }
}

@media (max-width: 520px) {
  .auth-shell {
    padding: 14px;
  }

  .auth-card {
    border-radius: 20px;
  }

  .auth-brand-panel {
    min-height: 320px;
    padding: 24px;
  }

  .auth-brand-main {
    margin-top: 36px;
  }

  .auth-brand-main h1 {
    font-size: 36px;
  }

  .auth-brand-main p {
    font-size: 15px;
  }

  .auth-brand-benefit {
    display: none;
  }

  .auth-form-panel {
    padding: 32px 22px;
  }

  .auth-form-wrap h2 {
    font-size: 28px;
  }
}
