/* Shared Auth Modal Styles for Billing Pages */

/* Modal Tabs */
.modal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid #e0f2fe;
}

.modal-tab {
  flex: 1;
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: #64748b;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: -2px;
}

.modal-tab:hover {
  color: #0ea5e9;
  background: #f0f9ff;
}

.modal-tab.active {
  color: #0ea5e9;
  border-bottom-color: #0ea5e9;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s;
}

.tab-content.active {
  display: block;
}

/* Override modal input styles for checkboxes */
.modal input[type="checkbox"] {
  width: auto !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

/* Auth Form Elements */
.forgot-password {
  text-align: right;
  margin-top: -4px;
  margin-bottom: 20px;
}

.forgot-password button {
  background: none;
  border: none;
  color: #0ea5e9;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s;
  font-family: inherit;
}

.forgot-password button:hover {
  background: #f0f9ff;
  color: #0284c7;
}

.forgot-password button:active {
  transform: scale(0.98);
}

.terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 0;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e0f2fe;
}

.terms-checkbox input[type="checkbox"] {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px;
  margin: 0 !important;
  margin-top: 1px !important;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: #0ea5e9;
  border: 2px solid #cbd5e1 !important;
  border-radius: 4px !important;
  padding: 0 !important;
}

.terms-checkbox label {
  font-size: 0.875rem;
  color: #475569;
  cursor: pointer;
  line-height: 1.6;
  flex: 1;
  margin: 0;
  user-select: none;
}

.terms-checkbox a {
  color: #0ea5e9;
  text-decoration: none;
  font-weight: 600;
}

.terms-checkbox a:hover {
  text-decoration: underline;
  color: #0284c7;
}

/* Password Strength Indicator */
.password-strength {
  margin-top: 8px;
  margin-bottom: 12px;
}

.password-strength-bar {
  height: 4px;
  background: #e0f2fe;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}

.password-strength-fill {
  height: 100%;
  width: 0;
  transition: all 0.3s;
  border-radius: 2px;
}

.password-strength-fill.weak {
  width: 33%;
  background: #ef4444;
}

.password-strength-fill.medium {
  width: 66%;
  background: #f59e0b;
}

.password-strength-fill.strong {
  width: 100%;
  background: #22c55e;
}

.password-strength-text {
  font-size: 0.75rem;
  color: #64748b;
}

/* Auth Error Messages */
.auth-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.875rem;
}
