.auth-page {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 20px;
  position: relative;
  background-color: var(--background-primary);
  background-image: url("/_content/AIBase.UI.Common/images/auth-row.png");
  background-position: top left;
  background-repeat: no-repeat;
  background-size: cover;
  font-family: var(--font-family-primary);
}

.auth-page * {
  box-sizing: border-box;
}

.auth-page a {
  color: inherit;
  text-decoration: none;
}

.auth-page button,
.auth-page input {
  font-family: inherit;
  font-size: 100%;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.auth-secondary-text {
  color: var(--text-secondary);
  font-size: var(--font-size-body-s);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-body-s);
}

.auth-hover-bright:hover {
  filter: brightness(1.2);
}

.auth-panel-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--text-primary);
  font-weight: var(--font-weight-semibold);
  background-color: var(--panel-bg);
  border-radius: 0;
  flex: 0 0 auto;
  box-shadow: none;
  width: 100%;
  max-width: 611px;
  gap: 133px;
  padding: 0 19px;
  margin-left: var(--space-2-5);
  position: relative;
  z-index: 1;
}

.auth-panel-body {
  width: 100%;
  max-width: 403px;
  display: flex;
  flex-direction: column;
  gap: 27px;
  padding: 86px 24px;
  text-align: center;
}

.auth-logo-frame {
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background-color: transparent;
  border-radius: 0;
}

.auth-logo {
  width: var(--space-7);
  height: var(--space-7);
}

.auth-logo-frame .title {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-body-md);
  font-weight: var(--font-weight-normal);
  color: var(--text-primary);
}

.auth-logo-frame .title-text {
  display: flex;
  align-items: flex-start;
  gap: var(--space-0-5);
}

.auth-logo-frame .title-ai {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

.auth-logo-frame .title-base {
  font-weight: var(--font-weight-normal);
  color: var(--text-secondary);
}

.auth-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 29px;
}

.auth-header-text {
  width: 100%;
  max-width: 333px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.auth-title {
  color: var(--text-strong);
  font-size: var(--font-size-display-s);
  line-height: var(--line-height-display-s);
  font-weight: var(--font-weight-semibold);
}

.auth-subtitle {
  color: var(--text-strong);
  font-size: var(--font-size-body-xl);
  line-height: var(--line-height-body-md);
  font-weight: var(--font-weight-medium);
  text-align: left;
  margin: 0 -6px;
}

.auth-page .auth-link {
  color: var(--accent-primary);
  font-weight: var(--font-weight-semibold);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.auth-page .auth-link--disabled {
  opacity: 0.6;
  pointer-events: none;
}

.auth-provider-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  color: var(--text-primary);
  background-color: var(--background-white);
  padding: 11px;
  border-radius: var(--radius-base);
  border: 1px solid var(--background-warm);
}

.auth-provider-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(1);
}

.auth-provider-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.auth-provider-icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.auth-provider-label {
  font-size: var(--font-size-body-md);
  font-weight: var(--font-weight-medium);
  color: var(--text-subtle);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-divider-line {
  flex: 1;
  height: 0;
  border-top: 1px solid var(--background-warm);
}

.auth-divider-text {
  color: var(--text-soft);
  font-size: var(--font-size-body-md);
  font-weight: var(--font-weight-medium);
}

.auth-form-block {
  display: flex;
  flex-direction: column;
  gap: 19px;
  align-items: stretch;
  text-align: left;
}

.auth-form-fields {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-label {
  color: var(--text-soft);
  font-size: var(--font-size-body-s);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-body-s);
}

.auth-input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--panel-bg);
  border-radius: var(--radius-base);
  padding: 11px 15px;
  gap: 8px;
  border: 1px solid var(--background-warm);
}

.auth-input-row input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-subtle);
  font-size: var(--font-size-body-md);
  font-weight: var(--font-weight-medium);
  text-align: left;
}

.auth-input-row select {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-subtle);
  font-size: var(--font-size-body-md);
  font-weight: var(--font-weight-medium);
  text-align: left;
  appearance: none;
}

.auth-input-row input::placeholder {
  color: var(--text-subtle);
}

.auth-input-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.auth-page .auth-primary-button {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--button-primary-hover);
  color: var(--text-inverse);
  padding: 14px 24px;
  border-radius: var(--radius-base);
  font-size: var(--font-size-body-s);
  font-weight: var(--font-weight-semibold);
  width: 100%;
}

.auth-page .auth-footer-link {
  color: var(--link-primary);
  text-align: center;
  font-size: var(--font-size-body-s);
  font-weight: var(--font-weight-medium);
}

.auth-footer {
  width: 100%;
  max-width: 611px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 0;
  text-align: left;
}

.auth-footer-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-footer-icon {
  width: 18px;
  height: 18px;
}

.auth-footer-text,
.auth-footer-contact {
  color: var(--text-subtle);
  font-size: var(--font-size-body-s);
  font-weight: var(--font-weight-medium);
  text-align: left;
}

.auth-right-panel {
  position: relative;
  width: 810px;
  max-width: 810px;
  flex-shrink: 0;
  color: var(--text-display);
  font-size: var(--font-size-display-xl);
  font-weight: var(--font-weight-bold);
  line-height: 1.09;
  letter-spacing: -0.63px;
  text-align: center;
  background-color: transparent;
  background-image: url("/_content/AIBase.UI.Common/images/auth-right-shape.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 0;
  border: none;
  box-shadow: none;
  padding: 342px 20px;
  margin-left: -39px;
  margin-top: -40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  overflow: hidden;
  z-index: 2;
}

.auth-right-title {
  margin: 0;
  position: relative;
  z-index: 1;
}

.validation-summary {
  color: var(--error-primary);
  font-size: var(--font-size-body-s);
  text-align: left;
}

@media (max-width: 1429px) {
  .auth-page {
    flex-direction: column;
    align-items: center;
    gap: 100px;
    padding: 24px 20px;
  }

  .auth-panel-stack {
    width: 100%;
    max-width: 611px;
    margin: 0;
  }

  .auth-right-panel {
    width: 100%;
    max-width: 810px;
    margin: 0;
  }
}

@media (max-width: 768px) {
  .auth-right-panel {
    padding: 342px 20px;
  }
}
