/* Form Styles */

.form-group {
  padding: 12px 16px;
}

.form-label {
  display: block;
  color: white;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 24px;
}

.form-input {
  display: flex;
  align-items: center;
  width: 100%;
  height: 32px;
  padding: 16px;
  background: #374151;
  border: 1px solid transparent;
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.2s ease-in-out;
}

.form-input:focus {
  background: #4b5563;
  border-color: #3b82f6;
  outline: none;
}

.form-input:hover {
  background: #4b5563;
}

.form-input::placeholder {
  color: #9ca3af;
}

/* Only show invalid styling for fields with is-invalid class (added by Laravel validation) */
.form-input.is-invalid {
  border-color: #ef4444;
}

.form-input.is-invalid:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Buttons */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  background: #2563eb;
  color: white;
  font-size: 14px;
  font-weight: 700;
  line-height: 21px;
  text-align: center;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:active {
  background: #1e40af;
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.btn-primary:disabled {
  background: #6b7280;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  padding: 8px 16px;
  background: #374151;
  color: white;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.btn-secondary:hover {
  background: #4b5563;
}

.btn-danger {
  padding: 8px 16px;
  background: #dc2626;
  color: white;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.btn-danger:hover {
  background: #b91c1c;
}

/* Form validation styles */
.form-group.error .form-input {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.form-group.success .form-input {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.error-message {
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

.success-message {
  color: #10b981;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

#password-addon {
  position: relative;
  top: -34px;
  height: 35px;
  left: calc(100% - 45px);
  background-color: transparent;
  border: 0;
}
