/* 
 * ESTILOS COMUNS - CARLLA VERAS
 * Estilos que se repetem em múltiplos arquivos
 * Data: 2025-09-17
 */

/* Garantir que o footer fique no final da página */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.site-footer {
  margin-top: auto;
}

/* Estilos comuns para formulários */
.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text);
  font-size: 15px;
  letter-spacing: 0.2px;
}

.form-group input {
  padding: 16px 20px;
  border: 2px solid rgba(226, 232, 226, 0.5);
  border-radius: 16px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.form-group input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(104, 211, 145, 0.15);
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

.form-group input.error {
  border-color: #e53e3e;
  box-shadow: 0 0 0 4px rgba(229, 62, 62, 0.15);
}

.form-group input.success {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(104, 211, 145, 0.15);
}

.error-message {
  color: #e53e3e;
  font-size: 12px;
  margin-top: 6px;
  display: none;
  font-weight: 500;
}

.error-message.show {
  display: block;
}

.success-message {
  color: #2d5a3d;
  font-size: 12px;
  margin-top: 6px;
  display: none;
}

.success-message.show {
  display: block;
}

/* Botões comuns */
.btn {
  padding: 16px 32px;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  letter-spacing: 0.3px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--blue) 0%, #5bb85a 100%);
  color: white;
  box-shadow: 0 8px 24px rgba(104, 211, 145, 0.3);
}

.btn--primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #5bb85a 0%, var(--blue) 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(104, 211, 145, 0.4);
}

.btn--primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(104, 211, 145, 0.3);
}

.btn--primary:disabled {
  background: var(--muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Loading states */
.loading {
  display: none;
  text-align: center;
  padding: 20px;
}

.loading.show {
  display: block;
}

.loading i {
  font-size: 24px;
  color: var(--yellow);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Success states */
.success-state {
  display: none;
  text-align: center;
  padding: 20px;
}

.success-state.show {
  display: block;
}

.success-state i {
  font-size: 48px;
  color: var(--blue);
  margin-bottom: 16px;
}

.success-state h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 24px;
}

.success-state p {
  margin: 0 0 24px;
  color: var(--muted);
}

/* Animações comuns */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsividade comum */
@media (max-width: 768px) {
  .main-content {
    padding: 0 20px 40px;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 0 16px 32px;
  }
}

