.auth-shell {
  min-height: calc(100vh - 260px);
  background: var(--color-bg-lavender-3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  padding: 2.25rem 2rem;
  box-shadow: 0 20px 40px rgba(30, 7, 64, 0.08);
}

.auth-card__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.auth-card h1 {
  font-size: 1.5rem;
  margin: 0 0 0.4rem;
  color: var(--color-primary-dark);
}

.auth-card__subtitle {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}

.auth-social {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-social__icon {
  flex-shrink: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin: 1.25rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-actions .btn {
  width: 100%;
}

.auth-footer-link {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.auth-footer-link a {
  color: var(--color-primary);
  font-weight: 700;
}

/* Step indicator (signup) */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.step-indicator__dot {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--color-bg-lavender-1);
  color: var(--color-text-muted);
}

.step-indicator__dot.is-active {
  background: var(--color-primary);
  color: #fff;
}

.step-indicator__line {
  flex: 1;
  height: 2px;
  background: var(--color-border);
}

.signup-step {
  display: none;
}

.signup-step.is-active {
  display: block;
}

.password-strength {
  height: 4px;
  border-radius: 999px;
  background: var(--color-border);
  margin-top: 0.5rem;
  overflow: hidden;
}

.password-strength__bar {
  height: 100%;
  width: 0%;
  background: var(--color-error);
  transition:
    width 0.2s ease,
    background 0.2s ease;
}

.password-strength__label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.3rem;
}

.terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.terms-checkbox a {
  color: var(--color-primary);
  font-weight: 600;
}

.phone-field {
  display: flex;
  gap: 0.5rem;
}

.phone-field select {
  max-width: 40%;
}

/* Split signup layout: form card first (renders on the right in RTL),
   illustration panel second (renders on the left) */
.auth-shell--split {
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.auth-shell--split .auth-card {
  width: auto;
  flex: 0 1 460px;
}

.auth-illustration {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  min-width: 280px;
  max-width: 420px;
  padding: 1.5rem;
}

.auth-illustration__art {
  width: 140px;
  height: 140px;
}

.auth-illustration__title {
  font-size: 1.6rem;
  line-height: 1.4;
  margin: 0;
  color: var(--color-primary-dark);
}

.auth-illustration__text {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin: 0;
}

@media (max-width: 860px) {
  .auth-shell--split {
    flex-direction: column-reverse;
  }

  .auth-illustration {
    align-items: center;
    text-align: center;
    max-width: 460px;
    padding: 0;
  }

  .auth-illustration__art {
    width: 100px;
    height: 100px;
  }
}

/* Profile page */
.profile-shell {
  max-width: 640px;
  margin: 0 auto;
}

.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.profile-card {
  width: 100%;
  max-width: none;
  margin-bottom: 1.5rem;
}

.profile-card:last-child {
  margin-bottom: 0;
}

.profile-card__title {
  font-size: 1.15rem;
  margin: 0 0 1.25rem;
  color: var(--color-primary-dark);
}

.profile-avatar-field {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.1rem;
}

.profile-avatar-field__preview {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
}

.profile-avatar-field__preview--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
}

.profile-avatar-field__input {
  flex: 1;
  margin-bottom: 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.profile-avatar-field__input a {
  color: var(--color-text-muted);
  word-break: break-all;
}
