.auth-page {
  min-height: 100vh;
  padding: 0;
  color: var(--app-text);
  background: var(--app-background);
  font-family: var(--app-font-family);
}

.auth-page__main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 32px;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(370px, 1fr);
  width: 100%;
  max-width: 1040px;
  min-height: 620px;
  overflow: hidden;
  background: var(--app-surface);
  border: 1px solid rgba(228, 231, 236, 0.9);
  border-radius: 24px;
  box-shadow: var(--app-shadow);
}

.auth-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 42px;
  color: #fff;
  background: linear-gradient(145deg, rgba(8, 19, 38, 0.60), rgba(8, 19, 38, 0.72)),
    linear-gradient(145deg, var(--login-primary, #173b8f) 0%, var(--login-secondary, #4f46e5) 100%);
}

.auth-showcase::before,
.auth-showcase::after {
  position: absolute;
  display: block;
  width: 260px;
  height: 260px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.auth-showcase::before {
  right: -120px;
  bottom: 78px;
  box-shadow: 0 0 0 28px rgba(255, 255, 255, 0.04), 0 0 0 56px rgba(255, 255, 255, 0.035);
}

.auth-showcase::after {
  top: -160px;
  left: -160px;
  box-shadow: 0 0 0 28px rgba(255, 255, 255, 0.04), 0 0 0 56px rgba(255, 255, 255, 0.035);
}

.auth-brand,
.auth-showcase__content,
.auth-showcase__footer {
  position: relative;
  z-index: 1;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.auth-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 7px 18px rgba(9, 30, 66, 0.2);
}

.auth-brand__mark img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.auth-brand__name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-showcase__content {
  max-width: 380px;
  margin-top: auto;
  margin-bottom: auto;
  padding: 64px 0;
}

.auth-showcase__content--contract {
  width: 100%;
  max-width: 420px;
  padding: 36px 0;
  text-align: center;
}

.auth-showcase__contract-name {
  margin-bottom: 26px;
  color: #bfdbfe;
  font-size: 14px;
  letter-spacing: 0.09em;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.auth-client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  min-height: 208px;
  margin: 0 auto 26px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(8, 19, 38, 0.24);
}

.auth-client-logo img {
  display: block;
  width: 100%;
  max-width: 264px;
  max-height: 150px;
  object-fit: contain;
}

.auth-showcase__content--contract p {
  max-width: 330px;
  margin: 0 auto;
}

.auth-eyebrow {
  display: block;
  margin-bottom: 18px;
  color: var(--login-focus, var(--app-primary));
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.auth-showcase .auth-eyebrow {
  color: #bfdbfe;
}

.auth-showcase h1 {
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.auth-showcase p {
  max-width: 330px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.7;
}

.auth-showcase__footer {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.auth-status-dot {
  width: 8px;
  height: 8px;
  background: var(--login-highlight, #86efac);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}

.auth-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px clamp(32px, 6vw, 76px);
  background: var(--app-surface);
}

.auth-card__header {
  margin-bottom: 30px;
}

.auth-card__header h2 {
  margin: 0 0 10px;
  color: var(--app-text);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.auth-card__header p {
  margin: 0;
  color: var(--app-text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.auth-card__mobile-brand {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 38px;
  color: var(--app-text);
}

.auth-card__mobile-client-brand {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 38px;
}

.auth-client-logo--mobile {
  max-width: 250px;
  min-height: 154px;
  margin-bottom: 0;
  padding: 22px;
  border-radius: 20px;
}

.auth-client-logo--mobile img {
  max-width: 206px;
  max-height: 108px;
}

.auth-card__mobile-contract-name {
  color: var(--login-focus, var(--app-primary));
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
}

.auth-card__mobile-brand .auth-brand__mark {
  width: 36px;
  height: 36px;
}

.auth-card__mobile-brand .auth-brand__mark img {
  width: 36px;
  height: 36px;
}

.auth-alert {
  margin-bottom: 20px;
  padding: 13px 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.55;
}

.auth-alert strong,
.auth-alert span,
.auth-alert small {
  display: block;
}

.auth-alert strong {
  margin-bottom: 2px;
  font-size: 13px;
}

.auth-alert small {
  margin-top: 7px;
  opacity: 0.8;
}

.auth-alert--danger {
  color: #a52834;
  background: #fff1f2;
  border-color: #fecdd3;
}

.auth-alert--success {
  color: #17603a;
  background: #ecfdf3;
  border-color: #bbf7d0;
}

.auth-alert--warning {
  color: #854d0e;
  background: #fffbeb;
  border-color: #fde68a;
}

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

.auth-field label {
  display: block;
  margin-bottom: 8px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.auth-input {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  color: var(--app-text);
  font-size: 15px;
  line-height: 1.4;
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.auth-input::placeholder {
  color: #98a2b3;
}

.auth-input:hover {
  border-color: #b8c1d1;
}

.auth-input:focus {
  border-color: var(--login-focus, var(--app-primary));
  outline: 2px solid var(--login-focus, var(--app-primary));
  outline-offset: 2px;
  box-shadow: none;
}

.auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, filter 160ms ease;
}

.auth-button:hover {
  transform: translateY(-1px);
}

.auth-button:focus {
  outline: 2px solid var(--login-focus, var(--app-primary));
  outline-offset: 2px;
  box-shadow: none;
}

.auth-button--primary {
  color: var(--login-on-primary, #fff);
  background: var(--login-primary, var(--app-primary));
  box-shadow: 0 8px 16px rgba(16, 24, 40, 0.16);
}

.auth-button--primary:hover {
  filter: brightness(0.92);
}

.auth-button--warning {
  color: #713f12;
  background: #facc15;
  box-shadow: 0 8px 16px rgba(234, 179, 8, 0.18);
}

.auth-button--warning:hover {
  background: #eab308;
}

.auth-card__footer {
  margin: 28px 0 0;
  color: #98a2b3;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 820px) {
  .auth-shell {
    grid-template-columns: minmax(280px, 0.82fr) minmax(340px, 1fr);
  }

  .auth-showcase,
  .auth-card {
    padding: 38px 32px;
  }
}

@media (max-width: 700px) {
  .auth-page__main {
    padding: 16px;
  }

  .auth-shell {
    display: block;
    min-height: auto;
    max-width: 480px;
    border-radius: 18px;
  }

  .auth-showcase {
    display: none;
  }

  .auth-card {
    min-height: calc(100vh - 32px);
    padding: 36px 28px;
  }

  .auth-card__mobile-brand {
    display: flex;
  }

  .auth-card__mobile-client-brand {
    display: flex;
  }
}

@media (max-width: 380px) {
  .auth-card {
    padding: 30px 20px;
  }

  .auth-card__mobile-brand {
    margin-bottom: 30px;
  }

  .auth-card__mobile-client-brand {
    margin-bottom: 30px;
  }

  .auth-client-logo--mobile {
    max-width: 220px;
    min-height: 140px;
    padding: 18px;
  }
}
