/* ─── Auth Forms ───────────────────────────────────── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #8da4c4;
  font-size: 0.85rem;
  font-weight: 500;
  margin: 10px 0 0px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.auth-screen .btn-primary {
  background: #3b82f6;
  color: #fff;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}
.auth-screen .btn-primary:hover {
  background: #2563eb;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.auth-screen .auth-switch a {
  color: #3b82f6;
}

.auth-screen .auth-switch a::after {
  background: #3b82f6;
}

.form-group {
  position: relative;
  animation: formGroupSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }

@keyframes formGroupSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-input {
  width: 100%;
  padding: 24px 16px 8px;
  background: #eaf0f8;
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  color: #111;
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus {
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
  transform: translateY(-1px);
}

.form-input::placeholder { color: transparent; }

.form-label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #8da4c4;
  font-size: 0.95rem;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: 8px;
  transform: translateY(0);
  font-size: 0.72rem;
  color: #3b82f6;
}

.form-textarea {
  resize: none;
  min-height: 80px;
  padding-top: 24px;
}

.form-textarea ~ .form-label { top: 16px; transform: none; }

.form-textarea:focus ~ .form-label,
.form-textarea:not(:placeholder-shown) ~ .form-label {
  top: 6px;
  font-size: 0.7rem;
}

.form-error {
  color: #ff6b6b;
  font-size: 0.82rem;
  min-height: 20px;
  animation: shakeError 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  10%, 50%, 90% { transform: translateX(-4px); }
  30%, 70% { transform: translateX(4px); }
}

/* Messenger context form inputs */
.messenger .form-input,
.modal .form-input {
  background: var(--bg-input);
  border-color: var(--border-input);
  color: var(--text-primary);
}

.messenger .form-input:focus,
.modal .form-input:focus {
  border-color: var(--primary);
  background: var(--bg-input);
  box-shadow: 0 0 0 4px var(--primary-bg), 0 0 16px var(--primary-glow);
  transform: translateY(-1px);
}

.messenger .form-label,
.modal .form-label { color: var(--text-tertiary); }

.messenger .form-input:focus ~ .form-label,
.messenger .form-input:not(:placeholder-shown) ~ .form-label,
.modal .form-input:focus ~ .form-label,
.modal .form-input:not(:placeholder-shown) ~ .form-label {
  color: var(--primary);
}
