.auth-page {
  background:
    radial-gradient(circle at 12% 18%, rgb(44 26 80 / 10%), transparent 32%),
    linear-gradient(135deg, #f7f8fb 0%, #eef2f7 52%, #f6f8fb 52%, #ffffff 100%);
  direction: ltr;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 520px);
  gap: 42px;
  min-height: calc(100vh - 54px);
  padding: 34px 34px 34px 72px;
}

.auth-visual {
  align-items: flex-start;
  color: #111827;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 680px;
  order: 1;
  padding: 28px 0;
  text-align: right;
}

.auth-visual__content span {
  color: #111827;
  direction: rtl;
  display: block;
  font-size: 14px;
  font-weight: 800;
  text-align: right;
  width: 100%;
}

.auth-visual__content {
  display: grid;
  justify-items: end;
  max-width: 660px;
  text-align: right;
  width: min(100%, 660px);
}

.auth-visual__content h1 {
  direction: rtl;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.35;
  margin: 14px 0 0;
  text-align: right;
  width: 100%;
}

.auth-visual__content p {
  color: #4b5563;
  direction: rtl;
  font-size: 16px;
  line-height: 1.9;
  margin: 18px 0 0;
  max-width: none;
  text-align: right;
  width: 100%;
}

.auth-panel-wrap {
  align-self: center;
  direction: rtl;
  display: grid;
  gap: 18px;
  order: 2;
}

.auth-panel-brand {
  align-items: center;
  display: grid;
  gap: 8px;
  justify-items: center;
  justify-self: end;
  padding-inline-end: 0;
  width: 240px;
}

.auth-panel-brand img {
  height: 66px;
  object-fit: cover;
  object-position: center;
  width: 240px;
}

.auth-panel-brand span {
  color: #111827;
  font-size: 14px;
  font-weight: 900;
}

.auth-panel {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  direction: rtl;
  padding: 36px;
}

.auth-panel__header span {
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 900;
}

.auth-panel__header h2 {
  font-size: 28px;
  margin: 10px 0 0;
}

.auth-panel__header p {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.8;
  margin: 8px 0 0;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

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

.auth-form label > span {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 800;
}

.auth-form input[type="text"],
.auth-form input[type="password"] {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  min-height: 46px;
  padding: 0 13px;
}

.auth-form__row {
  align-items: center;
  display: flex;
  justify-content: flex-start;
}

.auth-form__row a {
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 900;
}

.auth-check {
  align-items: center;
  display: flex !important;
  gap: 8px !important;
}

.auth-check input {
  accent-color: var(--color-primary);
}

.auth-check span {
  color: var(--color-text-muted) !important;
  font-size: 13px !important;
}

.auth-message {
  color: #b42318;
  font-size: 13px;
  font-weight: 800;
  min-height: 18px;
  margin: 0;
}

.auth-message.is-success {
  color: #12805c;
}

.auth-submit {
  background: var(--color-primary);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-weight: 900;
  min-height: 46px;
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.auth-footer {
  align-items: center;
  background: var(--color-surface-elevated);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  display: flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  min-height: 54px;
}

@media (max-width: 900px) {
  .auth-page {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .auth-visual {
    min-height: 320px;
    padding: 16px 4px 28px;
  }

  .auth-panel-wrap {
    align-self: stretch;
  }

  .auth-panel {
    padding: 28px;
  }
}
