/* ترصيد – Auth Pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: 100vh;
}

.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  background: var(--white);
}

.auth-form-container {
  width: 100%;
  max-width: 420px;
}

.auth-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-brand img.logo-small {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 14px;
}

.auth-brand h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-deep);
  margin-bottom: 0.25rem;
}

.auth-brand .tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.auth-brand .domain {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 500;
  margin-top: 0.25rem;
}

.auth-form-container h2 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
  color: var(--text-dark);
}

.auth-form-container .subtitle {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  font-size: 0.9rem;
}

.auth-form .btn-primary {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.85rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-footer a {
  font-weight: 700;
}

.account-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.account-type-option {
  position: relative;
}

.account-type-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.account-type-option label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.5rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  transition: all var(--transition);
  min-height: 48px;
}

.account-type-option input:checked + label {
  border-color: var(--green-deep);
  background: rgba(6, 78, 59, 0.08);
  color: var(--green-deep);
}

.auth-visual-side {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green-deep) 50%, #0A6B52 100%);
  overflow: hidden;
}

.auth-visual-side.auth-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  opacity: 0.5;
}

.auth-intro-card {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  max-width: 400px;
}

.auth-intro-card .mascot-auth {
  width: 200px;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.25));
}

.auth-intro-card h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.auth-intro-card p {
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: right;
}

.auth-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  font-size: 0.9rem;
}

.auth-feature-item .icon {
  font-size: 1.25rem;
  color: var(--gold);
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--green-dark);
  color: var(--white);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.error {
  background: var(--danger);
}

@media (max-width: 900px) {
  .auth-split {
    grid-template-columns: 1fr;
  }

  .auth-visual-side {
    display: none;
  }

  .auth-form-side {
    min-height: 100vh;
  }
}
