/* Client portal auth — split layout (login + register) */
.client-auth-page {
  padding: 2.5rem 0 3.5rem;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 45%, #ffffff 100%);
  min-height: calc(100vh - 120px);
}

.client-auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2rem;
  align-items: start;
}

.client-auth-info {
  padding: 1.5rem 0.5rem 1.5rem 0;
}

.client-auth-badge {
  display: inline-flex;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}

.client-auth-info h1 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  color: #0f172a;
  margin-bottom: 0.65rem;
}

.client-auth-info > p {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.client-auth-features {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.client-auth-features li {
  position: relative;
  padding-left: 1.35rem;
  color: #334155;
  font-weight: 500;
}

.client-auth-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2563eb;
  font-weight: 700;
}

.client-auth-trust {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.client-auth-trust strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #0f172a;
}

.client-auth-trust p {
  margin: 0 0 0.65rem;
  color: #64748b;
  font-size: 0.9rem;
}

.client-auth-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.client-auth-trust-badges span {
  font-size: 0.72rem;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.client-auth-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.75rem 1.65rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.client-auth-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  color: #0f172a;
}

.client-auth-card-sub {
  color: #64748b;
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
}

.client-auth-form .form-group {
  margin-bottom: 0.95rem;
}

.client-auth-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #1e293b;
}

.client-auth-form input[type="text"],
.client-auth-form input[type="email"],
.client-auth-form input[type="tel"],
.client-auth-form input[type="password"] {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font: inherit;
}

.password-field,
.phone-field {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.password-field input,
.phone-field input {
  flex: 1;
}

.password-toggle {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  cursor: pointer;
}

.phone-prefix {
  font-size: 0.82rem;
  color: #64748b;
  white-space: nowrap;
}

.checkbox-row {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  margin: 0.75rem 0;
  font-size: 0.88rem;
  color: #475569;
  cursor: pointer;
  line-height: 1.35;
}

.checkbox-row input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: #2563eb;
}

.checkbox-row span {
  display: inline-block;
}

.password-rules {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
  font-size: 0.78rem;
  color: #94a3b8;
}

.password-rules li.is-ok {
  color: #059669;
}

.password-strength {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
}

.password-strength[data-level="3"] { color: #059669; }
.password-strength[data-level="2"] { color: #d97706; }
.password-strength[data-level="1"] { color: #dc2626; }

.client-auth-first-note {
  margin-top: 1rem;
  padding: 0.85rem 0.95rem;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-size: 0.86rem;
}

.client-auth-links {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.client-auth-links p {
  margin: 0.35rem 0;
}

@media (max-width: 900px) {
  .client-auth-shell {
    grid-template-columns: 1fr;
  }
  .client-auth-info {
    order: 2;
    padding-top: 0;
  }
  .client-auth-card {
    order: 1;
  }
  .client-auth-features li:nth-child(n+3) {
    display: none;
  }
}
