/* ========================================
   Auth System - Custom Styles
   ======================================== */

/* Table responsive wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Smooth transitions */
input, select, button, a, textarea {
  transition: all 0.15s ease-in-out;
}

/* Focus ring */
input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Password strength indicator */
.strength-bar {
  height: 3px;
  border-radius: 2px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

/* Loading spinner */
.spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #ffffff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Form input uniform style */
.form-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid #d4d4d8;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  color: #18181b;
  background: #ffffff;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.form-input:focus {
  border-color: #27272a;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(39, 39, 42, 0.14);
}
.form-input::placeholder {
  color: #a1a1aa;
}
.form-input:disabled {
  background: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
}

/* Checkbox custom */
.form-checkbox {
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
  border: 1.5px solid #d1d5db;
  cursor: pointer;
  accent-color: #18181b;
}

/* Profile tab active */
.profile-tab.active {
  color: #3b82f6;
  border-bottom: 2px solid #3b82f6;
}
.profile-tab {
  border-bottom: 2px solid transparent;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: #d1d5db;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s;
}
.toggle-switch.active {
  background: #3b82f6;
}
.toggle-switch::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  top: 2px;
  left: 2px;
  transition: transform 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.toggle-switch.active::after {
  transform: translateX(20px);
}
