/* Client auth pages (Tailwind-first) + compatibility for legacy JS hooks */

/* Legacy bootstrap-ish helper used throughout templates/JS */
.hidden { display: none !important; }

/* jQuery validate inserts <span> errors; keep them readable in both RTL/LTR */
#contact-form span.error,
#contact-form span.field-validation-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #dc2626; /* red-600 */
}

/* These are toggled by client_register.js (has-error/has-success) */
.has-error .ca-input {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}
.has-success .ca-input {
  border-color: #16a34a !important; /* green-600 */
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.08);
}

/* Alerts: keep IDs/classes used by JS but style them nicely */
.alert {
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.alert strong { font-weight: 700; }
.alert-success {
  background: rgba(34, 197, 94, 0.12); /* green-500 */
  border-color: rgba(34, 197, 94, 0.22);
  color: #14532d; /* green-900 */
}
/* Existing template uses "alert-error" */
.alert-error {
  background: rgba(239, 68, 68, 0.10); /* red-500 */
  border-color: rgba(239, 68, 68, 0.22);
  color: #7f1d1d; /* red-900 */
}

.btn-custom {
  padding: 0.4rem 1rem;
  font-weight: 500;
  border-radius: 5px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent; /* Ensure border exists for Tailwind/reset */
}
  
.btn-primary.btn-custom {
  background-color: #3a8ffe;
  border-color: #3a8ffe;
  color: #fff;
}
  
.btn-primary.btn-custom:hover {
  background-color: #1d63c3;
  border-color: #1d63c3;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary.btn-custom {
  color: #3a8ffe;
  border: 1px solid #3a8ffe !important;
}
  
.btn-outline-primary.btn-custom:hover {
  color: white;
  background-color: #3a8ffe;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
  

/* Base input styling (used with Tailwind, but needed for non-TW states) */
.ca-input {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.55); /* slate-400 */
  background: rgba(255, 255, 255, 0.9);
  padding: 0.85rem 0.95rem;
  outline: none;
  transition: box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}
.ca-input:focus {
  border-color: rgba(59, 130, 246, 0.70); /* blue-500 */
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
  background: #fff;
}

/* Some legacy selectors in old template; keep them neutral */
.form-control { background-color: transparent; }
.form-group { margin-bottom: 0.95rem; }

/* Make reCAPTCHA container not overflow on small screens */
#g-recaptcha { max-width: 100%; }

/* cell_input_widget_new — provide base styling that Bootstrap would normally supply
   (Bootstrap CSS is not loaded in client_auth_base.html; Tailwind preflight resets inputs) */
.cwn-input {
    display: block;
    width: 100%;
    padding: 0.85rem 0.95rem;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.5;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.55);
    outline: none;
    transition: box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}
.cwn-input:focus {
    border-color: rgba(59, 130, 246, 0.70);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
    background: #fff;
}
/* Match button height to the input height in this context */
.cwn-btn {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

