/* Novira — Login / signup (Digikala-style card) */

.ds-auth-page {
  --ds-auth-link: #19bfd3;
  min-height: 100vh;
  background: var(--ds-bg-soft, #f0f0f1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.ds-auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--ds-bg);
  border: 1px solid var(--ds-border);
  border-radius: 16px;
  padding: 28px 24px 24px;
  box-shadow: var(--ds-shadow);
}

.ds-auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  min-height: 40px;
}

.ds-auth-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--ds-text);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
}

.ds-auth-back:hover {
  background: var(--ds-bg-soft);
}

.ds-auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-inline-start: auto;
}

.ds-auth-logo .ds-logo-mark {
  width: 28px;
  height: 28px;
}

.ds-auth-logo .ds-logo-text {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--ds-brand);
}

.ds-auth-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--ds-text);
  margin: 0 0 8px;
  text-align: right;
  line-height: 1.5;
}

.ds-auth-sub {
  font-size: 13px;
  color: var(--ds-text-muted);
  margin: 0 0 24px;
  text-align: right;
  line-height: 1.6;
}

.ds-auth-field {
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  padding: 0 14px 12px;
  margin: 0 0 20px;
  min-width: 0;
}

.ds-auth-field legend {
  font-size: 12px;
  color: var(--ds-text-muted);
  padding: 0 6px;
  margin-inline-start: 8px;
}

.ds-auth-input {
  width: 100%;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 15px;
  color: var(--ds-text);
  background: transparent;
  padding: 8px 0 0;
  text-align: right;
}

.ds-auth-input--ltr {
  text-align: left;
  direction: ltr;
  letter-spacing: 0.25em;
  font-variant-numeric: tabular-nums;
}

.ds-auth-field:focus-within {
  border-color: var(--ds-brand);
}

.ds-auth-error {
  font-size: 12px;
  color: var(--ds-brand);
  margin: -12px 0 16px;
  text-align: right;
}

.ds-auth-submit {
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: var(--ds-brand);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: filter 0.2s, background 0.2s;
}

.ds-auth-submit:hover {
  filter: brightness(0.95);
}

.ds-auth-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ds-auth-legal {
  font-size: 12px;
  color: var(--ds-text-muted);
  line-height: 1.7;
  text-align: right;
  margin: 20px 0 0;
}

.ds-auth-legal a {
  color: var(--ds-auth-link);
  text-decoration: none;
}

.ds-auth-legal a:hover {
  text-decoration: underline;
}

.ds-auth-timer {
  font-size: 13px;
  color: var(--ds-text-muted);
  text-align: center;
  margin: 0 0 20px;
}

.ds-auth-resend {
  display: block;
  width: 100%;
  margin: 0 0 20px;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ds-auth-link);
  cursor: pointer;
  text-align: center;
}

.ds-auth-resend:disabled {
  color: var(--ds-text-muted);
  cursor: default;
}

.ds-auth-otp-hint {
  text-align: right;
}

.ds-auth-otp-hint strong {
  font-weight: 600;
  color: var(--ds-text-secondary);
  direction: ltr;
  unicode-bidi: embed;
  display: inline-block;
}
